user_socialte
parent
0cf776decd
commit
75a42c9846
|
|
@ -49,6 +49,10 @@ class AuthController extends AdminAuthController
|
|||
$openid = $request->input('openid');
|
||||
$open_type = $request->input('open_type');
|
||||
if ($openid && $open_type) {
|
||||
UserSocialite::where([
|
||||
'type' => SocialiteType::from($open_type),
|
||||
'user_type' => $user->getMorphClass(),
|
||||
])->update(['user_id' => null]);
|
||||
UserSocialite::updateOrCreate([
|
||||
'type' => SocialiteType::from($open_type),
|
||||
'user_type' => $user->getMorphClass(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue