Skip to content

Commit

Permalink
Strong password
Browse files Browse the repository at this point in the history
  • Loading branch information
subhadipghorui committed Dec 17, 2020
1 parent 2d72157 commit da1becb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Http/Controllers/Auth/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Illuminate\Foundation\Auth\AuthenticatesUsers;
use Illuminate\Support\Facades\Auth;
use Laravel\Socialite\Facades\Socialite;
use Illuminate\Support\Str;

class LoginController extends Controller
{
Expand Down Expand Up @@ -70,7 +71,7 @@ public function handleProviderCallback()
$newUser->email = $user->email;
$newUser->name = $user->name;
$newUser->userid = $user->id;
$newUser->password = uniqid(); // we dont need password for login
$newUser->password = uniqid().Str::random(10); // we dont need password for login. For random number we user Str::random()
$newUser->save();

// Login
Expand Down

0 comments on commit da1becb

Please sign in to comment.