Skip to content

Commit

Permalink
Fix encryption
Browse files Browse the repository at this point in the history
  • Loading branch information
dvlpp committed Oct 13, 2023
1 parent 14a2d40 commit 3555c41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Http/PasswordResetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Password;
use Illuminate\Support\Str;
use Illuminate\Validation\Rules\Password as RulesPassword;
Expand Down Expand Up @@ -33,7 +34,7 @@ public function store(Request $request): RedirectResponse
$resetCallback = function ($user, $password) {
$user
->forceFill([
config('sharp.auth.password_attribute', 'password') => $password,
config('sharp.auth.password_attribute', 'password') => Hash::make($password),
'remember_token' => Str::random(60),
])
->save();
Expand Down

0 comments on commit 3555c41

Please sign in to comment.