summaryrefslogtreecommitdiff
path: root/src/user_content.hpp
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2015-04-18 21:08:01 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2015-04-18 21:08:01 +0200
commit1543cd3d0c0e6b54440c6a895f2f283dc3688913 (patch)
tree30947c4c52b3692371f7a6e71654e189dd0e85ee /src/user_content.hpp
parent0e980c64a91db883a252c1695b0a3639b4489bfc (diff)
downloadaCms-1543cd3d0c0e6b54440c6a895f2f283dc3688913.tar.gz
aCms-1543cd3d0c0e6b54440c6a895f2f283dc3688913.tar.bz2
rudimentary login available
Diffstat (limited to 'src/user_content.hpp')
-rw-r--r--src/user_content.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/user_content.hpp b/src/user_content.hpp
index b52d2ea..4b260f5 100644
--- a/src/user_content.hpp
+++ b/src/user_content.hpp
@@ -8,16 +8,22 @@
namespace content {
struct login_form : public cppcms::form {
+ apps::strusCms &cms;
cppcms::widgets::text username;
cppcms::widgets::password password;
cppcms::widgets::submit submit;
public:
- login_form( );
+ login_form( apps::strusCms &cms );
+ virtual bool validate( );
+
};
struct user : public master {
login_form login;
+
+ public:
+ user( apps::strusCms &cms );
};
}