diff --git a/app/Repositories/UserRepository.php b/app/Repositories/UserRepository.php index abc9da0957b3..52bf31033ca8 100644 --- a/app/Repositories/UserRepository.php +++ b/app/Repositories/UserRepository.php @@ -62,7 +62,9 @@ class UserRepository extends BaseRepository // $account->num_users++; // $account->save(); // } - + if(array_key_exists('oauth_provider_id', $details)) + unset($details['oauth_provider_id']); + $user->fill($details); //allow users to change only their passwords - not others!