Logout fertig

This commit is contained in:
2025-06-23 10:33:53 +02:00
parent 032029ce7f
commit ba55304182
2 changed files with 6 additions and 2 deletions

View File

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