summaryrefslogtreecommitdiff
path: root/src/user_content.hpp
blob: 887c61a79b9ddcf12418898587e549277e78ccd1 (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;
	
	public:
		user( apps::strusCms &cms );
};

}

#endif