diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2012-08-25 10:51:13 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2012-08-25 10:51:13 +0800 |
commit | 36a38c8851a55a3240ec698e753dc7e5c7c3373a (patch) | |
tree | 781a47ad8a23a885eeb9378323f1a94af0478d1d | |
parent | 063873ef5ff4f8dfd2952a794e237d713c3a154e (diff) | |
download | pttbbs-36a38c8851a55a3240ec698e753dc7e5c7c3373a.tar pttbbs-36a38c8851a55a3240ec698e753dc7e5c7c3373a.tar.gz pttbbs-36a38c8851a55a3240ec698e753dc7e5c7c3373a.tar.bz2 pttbbs-36a38c8851a55a3240ec698e753dc7e5c7c3373a.tar.lz pttbbs-36a38c8851a55a3240ec698e753dc7e5c7c3373a.tar.xz pttbbs-36a38c8851a55a3240ec698e753dc7e5c7c3373a.tar.zst pttbbs-36a38c8851a55a3240ec698e753dc7e5c7c3373a.zip |
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
-rw-r--r-- | pttbbs/mbbsd/mbbsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |