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:
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2012-2014, Tomasz Sowa
|
||||
* Copyright (c) 2012-2021, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -73,7 +73,7 @@ bool RmUser::RemoveUser(long user_id)
|
||||
result = true;
|
||||
log << log2 << "RmUser: user id: " << user_id << " name: " << name << " was removed" << logend;
|
||||
|
||||
if( db->RemoveUser(user_id) != WINIX_ERR_OK )
|
||||
if( !puser->remove() )
|
||||
log << log1 << "RmUser: I cannot remove a user id: " << user_id << " from database" << logend;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user