mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Merge pull request #9042 from gestudio/patch-1
Issue #9040 - Auth saving json in Auth.redirect
This commit is contained in:
commit
0e97116093
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…
Reference in a new issue