Browse Source

added root login support

Serghey Rodin 13 years ago
parent
commit
ef12621de0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      web/login/index.php

+ 1 - 0
web/login/index.php

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