mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Merge branch '2.x' of github.com:cakephp/cakephp into 2.x
This commit is contained in:
commit
7626896286
1 changed files with 1 additions and 1 deletions
|
@ -359,7 +359,7 @@ class AuthComponent extends Component {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$controller->request->is('ajax')) {
|
if (!$controller->request->is('ajax') && !$controller->request->is('json')) {
|
||||||
$this->flash($this->authError);
|
$this->flash($this->authError);
|
||||||
$this->Session->write('Auth.redirect', $controller->request->here(false));
|
$this->Session->write('Auth.redirect', $controller->request->here(false));
|
||||||
$controller->redirect($this->loginAction);
|
$controller->redirect($this->loginAction);
|
||||||
|
|
Loading…
Add table
Reference in a new issue