This commit is contained in:
Felix Ivo
2025-06-23 10:49:07 +02:00
3 changed files with 20 additions and 5 deletions

View File

@@ -22,7 +22,9 @@ class UserController
$erg = array();
$erg = $this->userModel->verifyLogin($_POST["username"], $_POST["password"]);
if ($erg["success"] == true) {
echo "success";
header("Location: ?controller=Welcome&do=showWelcome");
exit();
}
else {
$this->view->setDoMethodName("showUserLoginForm");
@@ -34,6 +36,13 @@ class UserController
}
public function logoutUser()
{
$this->userModel->logoutUser();
header("Location: ?controller=Welcome&do=showWelcome");
exit();
}
public function showUserLoginForm()
{