mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 13:54:26 -07:00
added root login support
This commit is contained in:
parent
a12c625091
commit
ef12621de0
1 changed files with 1 additions and 0 deletions
|
@ -25,6 +25,7 @@ if (isset($_SESSION['user'])) {
|
||||||
$ERROR = "<a class=\"error\">ERROR: Invalid username or password</a>";
|
$ERROR = "<a class=\"error\">ERROR: Invalid username or password</a>";
|
||||||
} else {
|
} else {
|
||||||
$_SESSION['user'] = $_POST['user'];
|
$_SESSION['user'] = $_POST['user'];
|
||||||
|
if ($_POST['user'] == 'root') $_SESSION['user'] = 'admin';
|
||||||
if (!empty($_SESSION['request_uri'])) {
|
if (!empty($_SESSION['request_uri'])) {
|
||||||
header("Location: ".$_SESSION['request_uri']);
|
header("Location: ".$_SESSION['request_uri']);
|
||||||
unset($_SESSION['request_uri']);
|
unset($_SESSION['request_uri']);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue