Merge pull request #5960 from duk3luk3/auth-log-server

Add host to IMAP login error
pull/6002/head
Thomas B 7 years ago committed by GitHub
commit b0697e5f9a

@ -189,8 +189,8 @@ class rcube_imap extends rcube_storage
// write error log
else if ($this->conn->error) {
if ($pass && $user) {
$message = sprintf("Login failed for %s from %s. %s",
$user, rcube_utils::remote_ip(), $this->conn->error);
$message = sprintf("Login failed for %s against %s from %s. %s",
$user, $host, rcube_utils::remote_ip(), $this->conn->error);
rcube::raise_error(array('code' => 403, 'type' => 'imap',
'file' => __FILE__, 'line' => __LINE__,

Loading…
Cancel
Save