mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
#1424 fixed redirect admin
This commit is contained in:
parent
003ae82c23
commit
db14214521
@ -30,6 +30,12 @@ class SignInFormHandler
|
|||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (isset(session('url')['intended'])) {
|
||||||
|
$url = parse_url(session('url')['intended']);
|
||||||
|
if (substr($url['path'], 0, 7) === "/admin/") {
|
||||||
|
request()->session()->flush();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$authenticator->login($user, $builder->getFormValue('remember_me'));
|
$authenticator->login($user, $builder->getFormValue('remember_me'));
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user