From 36a38c8851a55a3240ec698e753dc7e5c7c3373a Mon Sep 17 00:00:00 2001 From: piaip Date: Sat, 25 Aug 2012 02:51:13 +0000 Subject: Change bad_logins to default True (delete). The reason is, a cracker who gets real password (after retrying) can login again to delete bad_logins, so the default value does not help. In the end we only see default=False makes people complaining "My account is tried everyday" - although the truth is they've only been tried one time. git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5697 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/mbbsd/mbbsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pttbbs/mbbsd/mbbsd.c b/pttbbs/mbbsd/mbbsd.c index 449c9d76..d182e2b2 100644 --- a/pttbbs/mbbsd/mbbsd.c +++ b/pttbbs/mbbsd/mbbsd.c @@ -998,7 +998,7 @@ inline static void check_bad_login(void) outs("通常並沒有辦法知道該ip是誰所有, " "以及其意圖(是不小心按錯或有意測您密碼)\n" "若您有帳號被盜用疑慮, 請經常更改您的密碼或使用加密連線"); - if (vans("您要刪除以上錯誤嘗試的記錄嗎? [y/N] ") == 'y') + if (vans("您要刪除以上錯誤嘗試的記錄嗎? [Y/n] ") == 'n') unlink(genbuf); } } -- cgit v1.2.3