Skip to content

Commit d514fb1

Browse files
author
panguobin
committed
Update AuthController.php
1 parent 216e6a2 commit d514fb1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Login/AuthController.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ public function callback()
4747

4848
// Try to get the user information
4949
$profile = $service->getUser();
50+
51+
if(!$profile){
52+
return \Redirect::intended('login');
53+
}
5054

5155
// Get the user related to the profile
5256
$upbondUser = $this->userRepository->getUserByUserInfo($profile);

0 commit comments

Comments
 (0)