Skip to content

Commit 854b7a1

Browse files
committed
update ResetUserPassword.php
1 parent 99e540c commit 854b7a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/Actions/Fortify/ResetUserPassword.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace App\Actions\Fortify;
44

55
use App\Models\User;
6+
use Illuminate\Support\Facades\Hash;
67
use Illuminate\Support\Facades\Validator;
78
use Laravel\Fortify\Contracts\ResetsUserPasswords;
89

@@ -22,7 +23,7 @@ public function reset(User $user, array $input): void
2223
])->validate();
2324

2425
$user->forceFill([
25-
'password' => $input['password'],
26+
'password' => Hash::make($input['password']),
2627
])->save();
2728
}
2829
}

0 commit comments

Comments
 (0)