]> git.donarmstrong.com Git - roundcube.git/blob - debian/patches/log-failed-logins.patch
Add patch from Kris Popendorf to log failed logins. Closes: #505267.
[roundcube.git] / debian / patches / log-failed-logins.patch
1 Log failed logins.
2 --- roundcube-0.1.1/index.php   2008-11-11 18:17:37.939438895 +0900
3 +++ roundcube-0.1.1-secured/index.php   2008-11-11 18:01:06.000000000 +0900
4 @@ -101,6 +101,9 @@
5    }
6    else {
7      $OUTPUT->show_message($IMAP->error_code < -1 ? 'imaperror' : 'loginfailed', 'warning');
8 +    if($IMAP->error_code != -1){
9 +      file_put_contents('php://stderr',"[".strftime("%c")."] [roundcube] [client ".$_SERVER['REMOTE_ADDR']."] failed login attempt.\n");
10 +    }
11      $RCMAIL->kill_session();
12    }
13  }