Create a fake user if not existing
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user