1
0
Fork 0
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:
Serghey Rodin 2012-07-04 23:44:44 +03:00
commit ef12621de0

View file

@ -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']);