blob: c0ff7eb6d57d0de2be3478f40599a6aef189f6f6 (
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_CONTENT_HPP
#define USER_CONTENT_HPP
#include "master_content.hpp"
#include <cppcms/form.h>
namespace content {
struct login_form : public cppcms::form {
apps::strusCms &cms;
cppcms::widgets::text username;
cppcms::widgets::password password;
cppcms::widgets::text captcha;
cppcms::widgets::submit submit;
public:
login_form( apps::strusCms &cms );
virtual bool validate( );
};
struct user : public master {
login_form login;
std::string captcha_base64;
public:
user( apps::strusCms &cms );
};
}
#endif
|