mirror of
https://github.com/myvesta/vesta
synced 2025-08-10 16:47:39 -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>";
|
||||
} else {
|
||||
$_SESSION['user'] = $_POST['user'];
|
||||
if ($_POST['user'] == 'root') $_SESSION['user'] = 'admin';
|
||||
if (!empty($_SESSION['request_uri'])) {
|
||||
header("Location: ".$_SESSION['request_uri']);
|
||||
unset($_SESSION['request_uri']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue