blob: e6a4e355a9985a86daa9a0537759951d2e2e9983 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#ifndef USER_HPP
#define USER_HPP
#include "master.hpp"
#include "user_content.hpp"
namespace apps {
class user : public master {
public:
user( strusCms &cms );
bool check_login( const std::string user, const std::string password );
bool user_exists( const std::string user );
void delete_user( const std::string user );
std::string registration_start( const std::string user, const std::string password, const std::string email );
bool verify_registration_code( const std::string code );
public:
std::string last_captcha;
std::string new_captcha;
private:
void login( );
void logout( );
void register_user( );
void confirm_register( );
void ini( content::user &c );
};
}
#endif
|