diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-07-07 02:49:03 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-07-07 02:49:03 +0800 |
commit | c8d6d8089bba6d9b2b1ee713074b6e318dddf27f (patch) | |
tree | a70fec461eda6ddc80033dec110fa1dde003c7fc /mbbsd | |
parent | 4400234c5cbc7d8fbc51da99f21b0e38efa9fd4d (diff) | |
download | pttbbs-ptt.testclient@2117.tar pttbbs-ptt.testclient@2117.tar.gz pttbbs-ptt.testclient@2117.tar.bz2 pttbbs-ptt.testclient@2117.tar.lz pttbbs-ptt.testclient@2117.tar.xz pttbbs-ptt.testclient@2117.tar.zst pttbbs-ptt.testclient@2117.zip |
fix UPPER/LOWER case problem when register.ptt.testclient@2117
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2117 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/register.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mbbsd/register.c b/mbbsd/register.c index 64b0afe5..a578f16a 100644 --- a/mbbsd/register.c +++ b/mbbsd/register.c @@ -217,10 +217,11 @@ new_register() } getdata(17, 0, msg_uid, newuser.userid, sizeof(newuser.userid), DOECHO); + strcpy(passbuf, newuser.userid); //PTT: getuser·|××××¥¿ - if (bad_user_id(newuser.userid)) + if (bad_user_id(passbuf)) outs("µLªk±µ¨ü³oÓ¥N¸¹¡A½Ð¨Ï¥Î^¤å¦r¥À¡A¨Ã¥B¤£n¥]§tªÅ®æ\n"); - else if ((id = getuser(newuser.userid)) && + else if ((id = getuser(passbuf)) && (id = check_and_expire_account(id, &xuser)) >= 0) { if (id == 999999) outs("¦¹¥N¸¹¤w¸g¦³¤H¨Ï¥Î ¬O¤£¦º¤§¨"); |