summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-02-19 00:38:56 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-02-19 00:38:56 +0800
commit138398eea9b37bf981cd51f92741c10386047262 (patch)
tree619c634fa5e162d30cda10ad9fe15a449dd9cf95 /mbbsd
parent2410045bd17cd7c391eb10bc6e891db90bcf5dac (diff)
downloadpttbbs-138398eea9b37bf981cd51f92741c10386047262.tar
pttbbs-138398eea9b37bf981cd51f92741c10386047262.tar.gz
pttbbs-138398eea9b37bf981cd51f92741c10386047262.tar.bz2
pttbbs-138398eea9b37bf981cd51f92741c10386047262.tar.lz
pttbbs-138398eea9b37bf981cd51f92741c10386047262.tar.xz
pttbbs-138398eea9b37bf981cd51f92741c10386047262.tar.zst
pttbbs-138398eea9b37bf981cd51f92741c10386047262.zip
- notify user if the regcode is already expired.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3925 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/user.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index d087d09a..df0c948e 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -1823,9 +1823,14 @@ u_register(void)
u_exit("registed");
exit(0);
return QUIT;
- } else if (strcmp(inregcode, "x") != 0 &&
- strcmp(inregcode, "X") != 0) {
- vmsg("認證碼錯誤!");
+ } else if (strcasecmp(inregcode, "x") != 0) {
+ if (regcode[0])
+ vmsg("認證碼錯誤!");
+ else {
+ vmsg("認證碼已過期,請重新註冊。");
+ toregister(email, phone, career, rname, addr, mobile);
+ return FULLUPDATE;
+ }
} else {
toregister(email, phone, career, rname, addr, mobile);
return FULLUPDATE;