x
This commit is contained in:
1 parent
97137da6b9
commit
9a4626e854
3 files changed
+26
-13
No files matched your search
@@ -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()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user