diff options
1 files changed, 1 insertions, 3 deletions
| -rw-r--r-- | src/controllers/DashboardLoginController.php | 4 |
diff --git a/src/controllers/DashboardLoginController.php b/src/controllers/DashboardLoginController.php index eb6f323..775b96f 100644 --- a/src/controllers/DashboardLoginController.php +++ b/src/controllers/DashboardLoginController.php @@ -15,10 +15,8 @@ class DashboardLoginController extends BaseController { DashboardController::invoke(); } else if ($_POST['username'] == "admin" && $_POST['password'] == "admin") { - // Probably a bad practice, but couldn't find if it is - $_SERVER['REQUEST_METHOD'] = "GET"; // Load normal dashboard - DashboardController::invoke(); + DashboardController::get(); } else { self::$message = "Bad credentials!"; |
