Skip to content

Commit ef12621

Browse files
committed
added root login support
1 parent a12c625 commit ef12621

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web/login/index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
$ERROR = "<a class=\"error\">ERROR: Invalid username or password</a>";
2626
} else {
2727
$_SESSION['user'] = $_POST['user'];
28+
if ($_POST['user'] == 'root') $_SESSION['user'] = 'admin';
2829
if (!empty($_SESSION['request_uri'])) {
2930
header("Location: ".$_SESSION['request_uri']);
3031
unset($_SESSION['request_uri']);

0 commit comments

Comments
 (0)