mirror of
https://git.yylx.win/https://github.com/fhirter-vkb/freescout-oauth.git
synced 2025-10-04 17:50:58 +08:00
Merge pull request #6 from bolsunovskyi/issue-5
[issue-5]: implement redirection to prev page after oauth login
This commit is contained in:
commit
6fa1bbd7db
1 changed files with 1 additions and 1 deletions
|
@ -55,6 +55,6 @@ class OAuthController extends Controller
|
|||
$user = User::where('email','=', $data['email'])->first();
|
||||
Auth::login($user);
|
||||
|
||||
return redirect('/');
|
||||
return redirect($request->session()->get('url.intended', '/'));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue