This commit is contained in:
2025-06-23 09:58:45 +02:00
parent 97137da6b9
commit 9a4626e854
3 changed files with 26 additions and 13 deletions

View File

@@ -19,19 +19,27 @@ class UserController
public function loginUser()
{
var_dump($_POST);
echo $_POST["username"];
$erg = array();
$erg = $this->userModel->verifyLogin($_POST["username"], $_POST["password"]);
if ($erg["success"] == true) {
echo "success";
}
else {
$this->view->setDoMethodName("showUserLoginForm");
$this->view->setVars([
"errmsg" => $erg["message"]
]);
$this->showUserLoginForm();
}
// on fail
$this->view->setDoMethodName("showUserLoginForm");
$this->showUserLoginForm();
}
public function showUserLoginForm()
{
}
}