Create a fake user if not existing

This commit is contained in:
emeric
2018-03-04 16:09:03 +01:00
parent bbb988266d
commit a3fd11c85b
4 changed files with 14 additions and 1 deletions
+6
View File
@@ -83,6 +83,12 @@ User::getAll(Wt::Dbo::Session& session)
return std::vector<pointer>(res.begin(), res.end());
}
User::pointer
User::create(Wt::Dbo::Session& session)
{
return session.add(new User());
}
User::pointer
User::getById(Wt::Dbo::Session& session, id_type id)
{