Change login failure message to show the login type (admin or user)

pull/218/head
Christian Weiske 6 years ago
parent 55790f9835
commit 3960f6fdad

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

@ -53,7 +53,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
header("Location: main.php"); header("Location: main.php");
exit; exit;
} else { } else {
error_log("PostfixAdmin login failed (username: $fUsername)"); error_log("PostfixAdmin user login failed (username: $fUsername)");
flash_error($PALANG['pLogin_failed']); flash_error($PALANG['pLogin_failed']);
} }
} }

Loading…
Cancel
Save