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-c8d6d8089bba6d9b2b1ee713074b6e318dddf27f.tar pttbbs-c8d6d8089bba6d9b2b1ee713074b6e318dddf27f.tar.gz pttbbs-c8d6d8089bba6d9b2b1ee713074b6e318dddf27f.tar.bz2 pttbbs-c8d6d8089bba6d9b2b1ee713074b6e318dddf27f.tar.lz pttbbs-c8d6d8089bba6d9b2b1ee713074b6e318dddf27f.tar.xz pttbbs-c8d6d8089bba6d9b2b1ee713074b6e318dddf27f.tar.zst pttbbs-c8d6d8089bba6d9b2b1ee713074b6e318dddf27f.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¤£¦º¤§¨"); |