oauth login check user is normal

This commit is contained in:
xiaomlove
2025-05-06 20:25:57 +07:00
parent 32ff10923c
commit eb830ec869
3 changed files with 7 additions and 7 deletions

View File

@@ -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);
}