summaryrefslogtreecommitdiff
path: root/src/user_content.hpp
blob: 857a15c00265af2911f37a2008612f7512653798 (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
34
#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_text;
	std::string captcha_base64;
	
	public:
		user( apps::strusCms &cms );
};

}

#endif