Merge pull request #1441 from jonnybarnes/1440-make-login-work-with-indieauth-flow
Save full url during login
This commit is contained in:
commit
de3661ab77
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ class MyAuthMiddleware
|
||||||
{
|
{
|
||||||
if (Auth::check() === false) {
|
if (Auth::check() === false) {
|
||||||
// they’re not logged in, so send them to login form
|
// they’re not logged in, so send them to login form
|
||||||
redirect()->setIntendedUrl($request->url());
|
redirect()->setIntendedUrl($request->fullUrl());
|
||||||
|
|
||||||
return redirect()->route('login');
|
return redirect()->route('login');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue