summaryrefslogtreecommitdiffstats
path: root/mbbsd/emaildb.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/emaildb.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/emaildb.c')
-rw-r--r--mbbsd/emaildb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mbbsd/emaildb.c b/mbbsd/emaildb.c
index d8f0ae05..90cd567e 100644
--- a/mbbsd/emaildb.c
+++ b/mbbsd/emaildb.c
@@ -47,6 +47,9 @@ int emaildb_check_email(char * email, int email_len)
// use mail.
if (strcasecmp(result, cuser.userid) == 0)
continue;
+
+ // force update
+ u.email[0] = 0;
if (getuser(result, &u))
if (strcasecmp(email, u.email) == 0)