mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-12 06:56:24 +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');
|
$this->Session->setFlash($this->loginError, 'default', array(), 'Auth.login');
|
||||||
unset($controller->data[$this->userModel][$this->fields['password']]);
|
unset($controller->data[$this->userModel][$this->fields['password']]);
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
} else {
|
} else {
|
||||||
if (!$this->user()) {
|
if (!$this->user()) {
|
||||||
if (!$this->RequestHandler->isAjax()) {
|
if (!$this->RequestHandler->isAjax()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue