Merge branch 'main' of http://git.pb.bib.de/PBBFA23CIV/EIANotesApp
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
Reference in New Issue
Block a user