6
0
Fork 0

调整三方登录解绑时的逻辑

release
vine_liutk 2022-02-24 10:44:29 +08:00
parent 555d7e1c9f
commit 292f540879
1 changed files with 5 additions and 2 deletions

View File

@ -222,8 +222,11 @@ class SocialiteAuthController extends Controller
break;
}
}
//解绑以前的关系
SocialiteUser::where('user_id', $user->id)->update([
//解绑对应三方以前的关系
SocialiteUser::where([
'user_id' => $user->id,
'socialite_type' => $socialite['socialite_type'],
])->update([
'user_id' => null,
]);
//绑定用户和三方信息关系