Summary Files Commits Branches @commit @diff @stats
path: root / src / controllers / DashboardLoginController.php
diff options
context:
space:
mode:
1 files changed, 1 insertions, 3 deletions
-rw-r--r--src/controllers/DashboardLoginController.php4
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!";