added: new plugin message: WINIX_PREPARE_USER_TO_LOGIN
a user will be logged in set PluginInfo::res to false (it is by default) to prevent logging the user directly after this message (if you do not return false) a WINIX_USER_LOGGED is sent in p1 you have a pointer to User struct (if at least one plugin returns false then the user will not be logged) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@820 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
19
core/users.h
19
core/users.h
@@ -22,12 +22,7 @@ class SessionManager;
|
||||
|
||||
class Users
|
||||
{
|
||||
typedef UGContainer<User> Table;
|
||||
Table table;
|
||||
|
||||
Cur * cur;
|
||||
SessionManager * session_manager;
|
||||
long how_many_logged;
|
||||
typedef UGContainer<User> Table;
|
||||
|
||||
public:
|
||||
|
||||
@@ -60,6 +55,18 @@ public:
|
||||
|
||||
void IncrementLoggedUsers();
|
||||
long HowManyLogged();
|
||||
|
||||
|
||||
private:
|
||||
|
||||
Table table;
|
||||
Cur * cur;
|
||||
SessionManager * session_manager;
|
||||
long how_many_logged;
|
||||
|
||||
bool LoginUserCheckSession(bool use_ses_log);
|
||||
User * LoginUserCheckStatus(long user_id, bool use_ses_log);
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user