added socialite provider for the user

This commit is contained in:
Milos Holba
2021-12-20 15:15:05 +01:00
parent f37c4f62b7
commit 22ae148a22
13 changed files with 280 additions and 88 deletions

View File

@@ -37,8 +37,9 @@ class CreateNewUserAction extends Controller
// Create user
$user = User::create([
'password' => ! $socialite_auth ? bcrypt($data['password']) : null,
'email' => $data['email'],
'password' => ! $socialite_auth ? bcrypt($data['password']) : null,
'oauth_provider' => $socialite_auth ? $data->oauth_provider : null,
'email' => $data['email'],
]);
// Mark as verified if verification is disabled