summaryrefslogtreecommitdiffstats
path: root/mbbsd/mbbsd.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-03-27 00:57:05 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-03-27 00:57:05 +0800
commit55367b29e2e0b49e96a9c75f259d60554b45c704 (patch)
treea27baa60682fa12b4a7d1f5a97e3a5cb5ed098e2 /mbbsd/mbbsd.c
parentdd19aa6ea6f949485cd6df72e525d5e334d73337 (diff)
downloadpttbbs-55367b29e2e0b49e96a9c75f259d60554b45c704.tar
pttbbs-55367b29e2e0b49e96a9c75f259d60554b45c704.tar.gz
pttbbs-55367b29e2e0b49e96a9c75f259d60554b45c704.tar.bz2
pttbbs-55367b29e2e0b49e96a9c75f259d60554b45c704.tar.lz
pttbbs-55367b29e2e0b49e96a9c75f259d60554b45c704.tar.xz
pttbbs-55367b29e2e0b49e96a9c75f259d60554b45c704.tar.zst
pttbbs-55367b29e2e0b49e96a9c75f259d60554b45c704.zip
verify userid when sethome path.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3308 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r--mbbsd/mbbsd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index 84233efc..71bb5382 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -678,7 +678,7 @@ login_query(void)
outs("本系統目前無法以 new 註冊, 請用 guest 進入\n");
continue;
#endif
- } else if (uid[0] == '\0') {
+ } else if (!is_validuserid(uid)) {
outs(err_uid);
@@ -706,7 +706,8 @@ login_query(void)
if( initcuser(uid) < 1 || !cuser.userid[0] ||
!checkpasswd(cuser.passwd, passbuf) ){
- logattempt(cuser.userid , '-');
+ if(is_validuserid(cuser.userid))
+ logattempt(cuser.userid , '-');
outs(ERR_PASSWD);
} else {