mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-08 04:33:49 +00:00
Login: Display error message on invalid login credentials.
This commit is contained in:
@@ -47,6 +47,7 @@ require_once "resources/require.php";
|
||||
//if the username is not provided then send to login.php
|
||||
if (strlen(check_str($_REQUEST["username"])) == 0 && strlen(check_str($_REQUEST["key"])) == 0) {
|
||||
$target_path = ($_REQUEST["path"] != '') ? $_REQUEST["path"] : $_SERVER["REQUEST_URI"];
|
||||
$_SESSION["message_mood"] = "negative";
|
||||
$_SESSION["message"] = "Invalid Username and/or Password";
|
||||
header("Location: ".PROJECT_PATH."/login.php?path=".urlencode($target_path));
|
||||
exit;
|
||||
@@ -280,6 +281,7 @@ require_once "resources/require.php";
|
||||
closelog();
|
||||
//redirect the user to the login page
|
||||
$target_path = ($_REQUEST["path"] != '') ? $_REQUEST["path"] : $_SERVER["PHP_SELF"];
|
||||
$_SESSION["message_mood"] = "negative";
|
||||
$_SESSION["message"] = "Invalid Username and/or Password";
|
||||
header("Location: ".PROJECT_PATH."/login.php?path=".urlencode($target_path));
|
||||
exit;
|
||||
|
||||
Reference in New Issue
Block a user