summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2010-10-16 22:57:46 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2010-10-16 22:57:46 +0800
commit6905903abd89ba855fc72520664d2cce621b89f7 (patch)
tree4991078a2e3e1ba2d012d0346fc032ca88b68e36
parent991999e737bdd0879618e54df06d0d175e5c4f7b (diff)
downloadpttbbs-6905903abd89ba855fc72520664d2cce621b89f7.tar
pttbbs-6905903abd89ba855fc72520664d2cce621b89f7.tar.gz
pttbbs-6905903abd89ba855fc72520664d2cce621b89f7.tar.bz2
pttbbs-6905903abd89ba855fc72520664d2cce621b89f7.tar.lz
pttbbs-6905903abd89ba855fc72520664d2cce621b89f7.tar.xz
pttbbs-6905903abd89ba855fc72520664d2cce621b89f7.tar.zst
pttbbs-6905903abd89ba855fc72520664d2cce621b89f7.zip
change check order
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5121 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/register.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pttbbs/mbbsd/register.c b/pttbbs/mbbsd/register.c
index 9549e30c..d64fae4a 100644
--- a/pttbbs/mbbsd/register.c
+++ b/pttbbs/mbbsd/register.c
@@ -732,10 +732,6 @@ new_register(void)
if (bad_user_id(passbuf))
outs("無法接受這個代號,請使用英文字母,並且不要包含空格\n");
-#ifdef MIN_ALLOWED_ID_LEN
- else if (strlen(passbuf) < MIN_ALLOWED_ID_LEN)
- prints("代號過短,請使用 %d 個字元以上的代號\n", MIN_ALLOWED_ID_LEN);
-#endif
else if ((id = getuser(passbuf, &xuser)) &&
// >=: see check_and_expire_account definition
(minute = check_and_expire_account(id, &xuser, 0)) >= 0)
@@ -755,6 +751,10 @@ new_register(void)
regcheck_ambiguous_userid_exist(passbuf) > 0) // ignore if error occurs
outs("此代號過於近似它人帳號,請改用別的代號。\n");
#endif
+#ifdef MIN_ALLOWED_ID_LEN
+ else if (strlen(passbuf) < MIN_ALLOWED_ID_LEN)
+ prints("代號過短,請使用 %d 個字元以上的代號\n", MIN_ALLOWED_ID_LEN);
+#endif
else // success
break;
}