x
This commit is contained in:
@@ -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