Skip to content

Commit

Permalink
Update RegistersUsers.php
Browse files Browse the repository at this point in the history
  • Loading branch information
mpociot authored Feb 20, 2020
1 parent b383deb commit 119c0fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Traits/RegistersUsers.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use BeyondCode\EmailConfirmation\Events\Confirmed;
use Illuminate\Http\Request;
use Illuminate\Support\Str;
use Illuminate\Auth\Events\Registered;

trait RegistersUsers
Expand Down Expand Up @@ -118,7 +119,7 @@ public function register(Request $request)
protected function sendConfirmationToUser($user)
{
// Create the confirmation code
$user->confirmation_code = str_random(25);
$user->confirmation_code = Str::random(25);
$user->save();

// Notify the user
Expand All @@ -136,4 +137,4 @@ protected function sendConfirmationToUser($user)
protected function confirmed($user) {
//
}
}
}

0 comments on commit 119c0fd

Please sign in to comment.