diff --git a/web/login/index.php b/web/login/index.php index 023113e9..e9873ac6 100644 --- a/web/login/index.php +++ b/web/login/index.php @@ -25,6 +25,7 @@ if (isset($_SESSION['user'])) { $ERROR = "ERROR: Invalid username or password"; } 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']);