From c54b428bfee694bdd45d712fb38cb23f7591000b Mon Sep 17 00:00:00 2001 From: piaip Date: Sat, 19 Sep 2009 23:19:07 +0000 Subject: * add last_login_time for some check rules in the future git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4863 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/mbbsd.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mbbsd/mbbsd.c') diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 6fddd4ed..747c8d4d 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -1256,6 +1256,7 @@ user_login(void) check_mailbox_quota(); check_register(); pwcuLoginSave(); // is_first_login_of_today is only valid after pwcuLoginSave. + // cuser.lastlogin 由 pwcuLoginSave 後值就變了,要看 last_login_time restore_backup(); // XXX 這個 check 花不少時間,有點間隔比較好 @@ -1421,6 +1422,7 @@ start_client(struct ProgramOption *option) } // process new, register, and load user data load_current_user(option->flag_user); + last_login_time = cuser.lastlogin; // keep a backup m_init(); /* init the user mail path */ user_login(); -- cgit v1.2.3