generate temp pass for social auth

parent cc090d7f
......@@ -135,7 +135,7 @@ class UserController extends Controller
if (!$user) {
$user = User::create([
'email' => $googleUser->email,
'password' => Hash::make(config('project.empty_password')),
'password' => Hash::make(str_random(8)),
]);
$user->email_verified_at = NOW();
$user->save();
......@@ -153,7 +153,7 @@ class UserController extends Controller
if (!$user) {
$user = User::create([
'email' => $appleUser->email,
'password' => Hash::make(config('project.empty_password')),
'password' => Hash::make(str_random(8)),
]);
$user->email_verified_at = NOW();
......
......@@ -4,6 +4,5 @@ return [
'name' => 'Reblum',
'title' => 'Reblum - portrait retouch app',
'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