WIP. Added User form

This commit is contained in:
emeric
2014-07-30 14:32:46 +02:00
parent b2bb2e0be1
commit 1f41f7f481
13 changed files with 695 additions and 39 deletions
+6
View File
@@ -103,6 +103,12 @@ Handler::getCurrentUser()
User::pointer
Handler::getUser(const Wt::Auth::User& authUser)
{
if (!authUser.isValid()) {
std::cerr << "Handler::getUser: invalid authUser" << std::endl;
return User::pointer();
}
Wt::Dbo::ptr<AuthInfo> authInfo = _users->find(authUser);
User::pointer user = authInfo->user();