start working on User and Group classes
- User and Group has been moved to 'models' directory - removed UserPass struct (passwords fields were put to User struct) not working yet, we need support for binary blobs in morm
This commit is contained in:
@@ -79,8 +79,18 @@ void Users::Clear()
|
||||
|
||||
void Users::ReadUsers(Db * db)
|
||||
{
|
||||
Clear();
|
||||
db->GetUsers(table);
|
||||
Clear();
|
||||
|
||||
morm::Finder<User> finder(model_connector);
|
||||
|
||||
std::list<User> users_tmp = finder.
|
||||
select().
|
||||
get_list();
|
||||
|
||||
for(User & user : users_tmp)
|
||||
{
|
||||
table.PushBack(user);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user