mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
auth invalid login return false
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5466 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
64b5f897e2
commit
99c1e9fe6d
1 changed files with 1 additions and 0 deletions
|
@ -299,6 +299,7 @@ class AuthComponent extends Object {
|
|||
$this->Session->setFlash($this->loginError, 'default', array(), 'Auth.login');
|
||||
unset($controller->data[$this->userModel][$this->fields['password']]);
|
||||
}
|
||||
return false;
|
||||
} else {
|
||||
if (!$this->user()) {
|
||||
if (!$this->RequestHandler->isAjax()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue