summaryrefslogtreecommitdiffstats
path: root/mbbsd/mbbsd.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-09-20 07:19:07 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-09-20 07:19:07 +0800
commitc54b428bfee694bdd45d712fb38cb23f7591000b (patch)
treee2c5d5ae0a43c2b667afa089f50240f9004ee1d1 /mbbsd/mbbsd.c
parentb98479ad81628401a1b9069e17ac5658a7108efe (diff)
downloadpttbbs-c54b428bfee694bdd45d712fb38cb23f7591000b.tar
pttbbs-c54b428bfee694bdd45d712fb38cb23f7591000b.tar.gz
pttbbs-c54b428bfee694bdd45d712fb38cb23f7591000b.tar.bz2
pttbbs-c54b428bfee694bdd45d712fb38cb23f7591000b.tar.lz
pttbbs-c54b428bfee694bdd45d712fb38cb23f7591000b.tar.xz
pttbbs-c54b428bfee694bdd45d712fb38cb23f7591000b.tar.zst
pttbbs-c54b428bfee694bdd45d712fb38cb23f7591000b.zip
* 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
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r--mbbsd/mbbsd.c2
1 files changed, 2 insertions, 0 deletions
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();