diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-02-10 14:30:08 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-02-10 14:30:08 +0800 |
commit | 2c96a71ae4f26917936d48009a9c95ea68dfa96b (patch) | |
tree | 7838eb28ebfed2eb95bc9155309cd5c6702494ee /mbbsd/user.c | |
parent | bb6edd1c80eaf3686e2e242e6f3ff32dae02cfb4 (diff) | |
download | pttbbs-2c96a71ae4f26917936d48009a9c95ea68dfa96b.tar pttbbs-2c96a71ae4f26917936d48009a9c95ea68dfa96b.tar.gz pttbbs-2c96a71ae4f26917936d48009a9c95ea68dfa96b.tar.bz2 pttbbs-2c96a71ae4f26917936d48009a9c95ea68dfa96b.tar.lz pttbbs-2c96a71ae4f26917936d48009a9c95ea68dfa96b.tar.xz pttbbs-2c96a71ae4f26917936d48009a9c95ea68dfa96b.tar.zst pttbbs-2c96a71ae4f26917936d48009a9c95ea68dfa96b.zip |
- user: fix the prompt of illegal regcode.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3909 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r-- | mbbsd/user.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c index d57b6ba3..fd8dfdd2 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -1783,12 +1783,13 @@ u_register(void) inregcode, sizeof(inregcode), DOECHO); if( strcmp(inregcode, "x") == 0 || strcmp(inregcode, "X") == 0 ) break; - if( inregcode[0] != 'v' || inregcode[1] != '6' ) { + if( strlen(inregcode) != 13 ) + vmsg("認證碼輸入不完整,應該一共有十三碼。"); + else if( inregcode[0] != 'v' || inregcode[1] != '6' ) { /* old regcode */ - vmsg("您輸入的認證碼因系統昇級已失效," + vmsg("輸入的認證碼錯誤或因系統昇級已失效," "請輸入 x 重填一次 E-Mail"); - } else if( strlen(inregcode) != 13 ) - vmsg("認證碼輸入不完全,應該一共有十三碼。"); + } else break; } while( 1 ); |