mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-04-20 21:27:34 +02:00
Redirect to login page on expired session
https://github.com/LinkStackOrg/LinkStack/issues/598
This commit is contained in:
parent
350d0e02be
commit
d7d6256f14
@ -37,5 +37,11 @@ class Handler extends ExceptionHandler
|
|||||||
$this->reportable(function (Throwable $e) {
|
$this->reportable(function (Throwable $e) {
|
||||||
//
|
//
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$this->renderable(function (\Exception $e) {
|
||||||
|
if ($e->getPrevious() instanceof \Illuminate\Session\TokenMismatchException) {
|
||||||
|
return redirect()->route('login');
|
||||||
|
};
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user