summaryrefslogtreecommitdiffstats
path: root/mbbsd/merge.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-11-04 23:11:11 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-11-04 23:11:11 +0800
commitb1e2b7fcfbb2a2267c22456406ca7491be9cace1 (patch)
treeac619fe92674c68044339a1180c16bf59d8d429f /mbbsd/merge.c
parent728b1b414c01ba227387b5fff72bd608d92789f0 (diff)
downloadpttbbs-b1e2b7fcfbb2a2267c22456406ca7491be9cace1.tar
pttbbs-b1e2b7fcfbb2a2267c22456406ca7491be9cace1.tar.gz
pttbbs-b1e2b7fcfbb2a2267c22456406ca7491be9cace1.tar.bz2
pttbbs-b1e2b7fcfbb2a2267c22456406ca7491be9cace1.tar.lz
pttbbs-b1e2b7fcfbb2a2267c22456406ca7491be9cace1.tar.xz
pttbbs-b1e2b7fcfbb2a2267c22456406ca7491be9cace1.tar.zst
pttbbs-b1e2b7fcfbb2a2267c22456406ca7491be9cace1.zip
show warning when passwd error
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2310 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/merge.c')
-rw-r--r--mbbsd/merge.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/mbbsd/merge.c b/mbbsd/merge.c
index 5e564d4e..437d1ade 100644
--- a/mbbsd/merge.c
+++ b/mbbsd/merge.c
@@ -9,7 +9,7 @@ int
m_sob()
{
char genbuf[256], buf[256], userid[25], passbuf[24], msg[2048]="";
- int count=0, i, isimported=0;
+ int count=0, i, isimported=0, corrected;
FILE *fp;
sobuserec man;
time_t d;
@@ -53,21 +53,23 @@ m_sob()
}while(!count);
count = 0;
do{
- getdata(11,0, " ¨FÅyªº±K½X:", passbuf, sizeof(passbuf),
- NOECHO);
+ if(!getdata(11,0, " ¨FÅyªº±K½X:", passbuf, sizeof(passbuf),
+ NOECHO)) return 0;
if(++count>=10)
{
cuser.userlevel |= PERM_VIOLATELAW;
cuser.vl_count++;
passwd_update(usernum, &cuser);
- post_violatelaw(cuser.userid, "[PTTĵ¹î]", "´ú¸Õ±b¸¹¿ù»~¤T¦¸",
+ post_violatelaw(cuser.userid, "[PTTĵ¹î]", "´ú¸Õ±b¸¹¿ù»~¤Q¦¸",
"¹HªkÆ[¹î");
- mail_violatelaw(cuser.userid, "[PTTĵ¹î]", "´ú¸Õ±b¸¹¿ù»~¤T¦¸",
+ mail_violatelaw(cuser.userid, "[PTTĵ¹î]", "´ú¸Õ±b¸¹¿ù»~¤Q¦¸",
"¹HªkÆ[¹î");
return 0;
}
- } while(!checkpasswd(man.passwd, passbuf));
+ if(!(corrected = checkpasswd(man.passwd, passbuf)))
+ vmsg("±K½X¿ù¿ùù»~");
+ } while(!corrected);
move(12,0);
clrtobot();