mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
oauth login check user is normal
This commit is contained in:
@@ -100,7 +100,11 @@ class OauthController extends Controller
|
||||
->first();
|
||||
if ($socialAccount) {
|
||||
//already bind, login directly
|
||||
/**
|
||||
* @var User $authUser
|
||||
*/
|
||||
$authUser = $socialAccount->user;
|
||||
$authUser->checkIsNormal();
|
||||
logincookie($authUser->id, $authUser->auth_key);
|
||||
return redirect($homeUrl);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user