WIP. User authentication on remote interface

This commit is contained in:
emeric
2014-07-09 14:25:25 +02:00
parent 3e96534e08
commit f142e457d8
12 changed files with 1591 additions and 219 deletions
+3
View File
@@ -25,6 +25,9 @@ class Handler
Wt::Dbo::Session& getSession() { return _session; }
User::pointer getCurrentUser(); // get the current user, may return empty
User::pointer getUser(const Wt::Auth::User& authUser); // Get or create the given user
Wt::Auth::AbstractUserDatabase& getUserDatabase();
Wt::Auth::Login& getLogin() { return _login; }
+2
View File
@@ -13,6 +13,8 @@ class User {
public:
typedef Wt::Dbo::ptr<User> pointer;
template<class Action>
void persist(Action& a)
{