Last active
October 9, 2017 20:45
-
-
Save deleugpn/4ba7a3ec5fa9eb38a057304f7247aee3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| protected function authenticated(Request $request, $user) | |
| { | |
| if (is_null($user->google_token)) { | |
| return redirect()->intended($this->redirectTo); | |
| } | |
| Auth::logout(); | |
| $request->session()->put('user-id', $user->id); | |
| return redirect('/token'); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment