generate temp pass for social auth

parent cc090d7f
...@@ -135,7 +135,7 @@ class UserController extends Controller ...@@ -135,7 +135,7 @@ class UserController extends Controller
if (!$user) { if (!$user) {
$user = User::create([ $user = User::create([
'email' => $googleUser->email, 'email' => $googleUser->email,
'password' => Hash::make(config('project.empty_password')), 'password' => Hash::make(str_random(8)),
]); ]);
$user->email_verified_at = NOW(); $user->email_verified_at = NOW();
$user->save(); $user->save();
...@@ -153,7 +153,7 @@ class UserController extends Controller ...@@ -153,7 +153,7 @@ class UserController extends Controller
if (!$user) { if (!$user) {
$user = User::create([ $user = User::create([
'email' => $appleUser->email, 'email' => $appleUser->email,
'password' => Hash::make(config('project.empty_password')), 'password' => Hash::make(str_random(8)),
]); ]);
$user->email_verified_at = NOW(); $user->email_verified_at = NOW();
......
...@@ -4,6 +4,5 @@ return [ ...@@ -4,6 +4,5 @@ return [
'name' => 'Reblum', 'name' => 'Reblum',
'title' => 'Reblum - portrait retouch app', 'title' => 'Reblum - portrait retouch app',
'minificate_static' => true, 'minificate_static' => true,
'empty_password' => '100',
]; ];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment