WIP. User authentication on user interface

This commit is contained in:
emeric
2014-07-08 19:39:49 +02:00
parent 4744111959
commit 3e96534e08
17 changed files with 370 additions and 76 deletions
+30
View File
@@ -0,0 +1,30 @@
#ifndef DATABASE_USER_HPP
#define DATABASE_USER_HPP
#include <Wt/Auth/Dbo/AuthInfo>
namespace Database {
class User;
typedef Wt::Auth::Dbo::AuthInfo<User> AuthInfo;
class User {
public:
template<class Action>
void persist(Action& a)
{
Wt::Dbo::field(a, _isAdmin, "admin");
}
private:
bool _isAdmin;
};
} // namespace Databas'
#endif