diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-06-17 14:38:21 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-06-17 14:38:21 +0800 |
commit | cc20dce5dbe95d913ab9c0ff9faa4cc0c5b749ef (patch) | |
tree | 24ea6e0bb04f40bb95959b382ab6c52caf3ead14 /mbbsd/mbbsd.c | |
parent | 11c2b151177f96bbf8eb5270a65e399ed592b6ee (diff) | |
download | pttbbs-cc20dce5dbe95d913ab9c0ff9faa4cc0c5b749ef.tar pttbbs-cc20dce5dbe95d913ab9c0ff9faa4cc0c5b749ef.tar.gz pttbbs-cc20dce5dbe95d913ab9c0ff9faa4cc0c5b749ef.tar.bz2 pttbbs-cc20dce5dbe95d913ab9c0ff9faa4cc0c5b749ef.tar.lz pttbbs-cc20dce5dbe95d913ab9c0ff9faa4cc0c5b749ef.tar.xz pttbbs-cc20dce5dbe95d913ab9c0ff9faa4cc0c5b749ef.tar.zst pttbbs-cc20dce5dbe95d913ab9c0ff9faa4cc0c5b749ef.zip |
comments for having login error log
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@941 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r-- | mbbsd/mbbsd.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index e5815c2d..511555c0 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -1,4 +1,4 @@ -/* $Id: mbbsd.c,v 1.82 2003/05/22 01:06:11 in2 Exp $ */ +/* $Id: mbbsd.c,v 1.83 2003/06/17 06:38:21 in2 Exp $ */ #include "bbs.h" #define SOCKET_QLEN 4 @@ -760,7 +760,7 @@ setup_utmp(int mode) static void user_login() { - char ans[4], i; + char i; char genbuf[200]; struct tm *ptime, *tmp; time_t now; @@ -841,9 +841,11 @@ user_login() } setuserfile(genbuf, str_badlogin); if (more(genbuf, NA) != -1) { - getdata(b_lines - 1, 0, "您要刪除以上錯誤嘗試的記錄嗎(Y/N)?[Y]", - ans, 3, LCECHO); - if (*ans != 'n') + move(b_lines - 3, 0); + prints("通常並沒有辦法知道該ip是誰所有, " + "以及其意圖(是不小心按錯或有意測您密碼)\n" + "若您有帳號被盜用疑慮, 請經常更改您的密碼或使用加密連線"); + if (getans("您要刪除以上錯誤嘗試的記錄嗎(Y/N)?[Y]") != 'n') unlink(genbuf); } check_register(); |