summaryrefslogtreecommitdiffstats
path: root/mbbsd/user.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r--mbbsd/user.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index fd8dfdd2..cfe9b998 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -1783,8 +1783,8 @@ u_register(void)
inregcode, sizeof(inregcode), DOECHO);
if( strcmp(inregcode, "x") == 0 || strcmp(inregcode, "X") == 0 )
break;
- if( strlen(inregcode) != 13 )
- vmsg("認證碼輸入不完整,應該一共有十三碼。");
+ if( strlen(inregcode) != 13 || inregcode[0] == ' ')
+ vmsg("認證碼輸入不完整,總共應有十三碼,沒有空白字元。");
else if( inregcode[0] != 'v' || inregcode[1] != '6' ) {
/* old regcode */
vmsg("輸入的認證碼錯誤或因系統昇級已失效,"