From 42f081391318e8b6ea59dc1101465d54de4d64dd Mon Sep 17 00:00:00 2001 From: piaip Date: Sun, 2 Dec 2007 10:51:00 +0000 Subject: - modify login: empty input is counted into attempts git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3613 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/mbbsd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 31cf0bc7..3e1fbef0 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -689,15 +689,18 @@ login_query(void) exit(1); } bzero(&cuser, sizeof(cuser)); + #ifdef DEBUG move(19, 0); prints("current pid: %d ", getpid()); #endif - while (getdata(20, 0, "請輸入代號,或以[guest]參觀,以[new]註冊:", + + if (getdata(20, 0, "請輸入代號,或以[guest]參觀,以[new]註冊:", uid, sizeof(uid), DOECHO) < 1) { // got nothing outs("請重新輸入。\n"); + continue; } #ifdef CONVERT -- cgit v1.2.3