summaryrefslogtreecommitdiffstats
path: root/mbbsd/user.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-01-31 01:00:25 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-01-31 01:00:25 +0800
commitb980cfa8c8f27bf5b014bdc948b225fa24c509e3 (patch)
treedfb1400d432a2db1efa93fa2fc08cf57bf3539ae /mbbsd/user.c
parent94532885c8a36425666519d233c310146a291ce4 (diff)
downloadpttbbs-b980cfa8c8f27bf5b014bdc948b225fa24c509e3.tar
pttbbs-b980cfa8c8f27bf5b014bdc948b225fa24c509e3.tar.gz
pttbbs-b980cfa8c8f27bf5b014bdc948b225fa24c509e3.tar.bz2
pttbbs-b980cfa8c8f27bf5b014bdc948b225fa24c509e3.tar.lz
pttbbs-b980cfa8c8f27bf5b014bdc948b225fa24c509e3.tar.xz
pttbbs-b980cfa8c8f27bf5b014bdc948b225fa24c509e3.tar.zst
pttbbs-b980cfa8c8f27bf5b014bdc948b225fa24c509e3.zip
- register: make birthday registration earlier, also helps over18 work correctly.
- register: change '1st register' check to email instead of birthday:year. - emaildb: fix offset-by-one (because the 'self' is not counted now) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3890 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r--mbbsd/user.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index d8bc901d..83402dfe 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -1465,7 +1465,7 @@ toregister(char *email, char *phone, char *career,
outs("暫時不允許\ email 認證註冊, 請稍後再試\n");
pressanykey();
return;
- } else if (email_count > EMAILDB_LIMIT) {
+ } else if (email_count >= EMAILDB_LIMIT) {
move(15, 0); clrtobot();
move(17, 0);
outs("指定的 E-Mail 已註冊過多帳號, 請使用其他 E-Mail, 或輸入 x 採手動認證\n");
@@ -1736,8 +1736,9 @@ u_register(void)
goto REGFORM;
}
- // XXX why check by year?
- if (cuser.year != 0 && /* 已經第一次填過了~ ^^" */
+ // XXX why check by year?
+ // birthday is moved to earlier, so let's check email instead.
+ if (cuser.email[0] && // cuser.year != 0 && /* 已經第一次填過了~ ^^" */
strcmp(cuser.email, "x") != 0 && /* 上次手動認證失敗 */
strcmp(cuser.email, "X") != 0) {
clear();