From 6068d95e6d7159f67df7f4a427795ee15eafde98 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 3 Apr 2021 11:02:31 +0300 Subject: Updated dashboard login controller to have a nicer way to redirect to dashboard controller --- src/controllers/DashboardLoginController.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/controllers/DashboardLoginController.php') 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!"; -- cgit v1.3.1-23-gd82d