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:
gwoo 2007-07-26 07:16:46 +00:00
parent 64b5f897e2
commit 99c1e9fe6d

View file

@ -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()) {