mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-11-20 23:43:26 +03:00
Merge pull request #218 from cweiske/specific-login-error
Change login failure message to show the login type (admin or user)
This commit is contained in:
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -73,7 +73,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
|
||||
header("Location: main.php");
|
||||
exit(0);
|
||||
} 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']);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
|
||||
header("Location: main.php");
|
||||
exit;
|
||||
} else {
|
||||
error_log("PostfixAdmin login failed (username: $fUsername)");
|
||||
error_log("PostfixAdmin user login failed (username: $fUsername)");
|
||||
flash_error($PALANG['pLogin_failed']);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user