log IP address for failed logins as well - see #105

pull/110/head
David Goodwin 7 years ago
parent b06d25de8f
commit 43fb0bde77

@ -75,7 +75,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
exit(0);
} else { # $h->login failed
error_log("PostfixAdmin login failed (username: $fUsername)");
error_log("PostfixAdmin login failed (username: $fUsername, ip_address: {$_SERVER['REMOTE_ADDR']})");
flash_error($PALANG['pLogin_failed']);
}
}

Loading…
Cancel
Save