Skip to content

Commit

Permalink
[6.x] Use framework Password validation rule (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguilimzero authored Mar 26, 2024
1 parent 92b3dc2 commit cbd4272
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stubs/app/Actions/Socialstream/SetUserPassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
use Illuminate\Validation\Rules\Password;
use JoelButcher\Socialstream\Contracts\SetsUserPasswords;
use Laravel\Fortify\Rules\Password;

class SetUserPassword implements SetsUserPasswords
{
Expand All @@ -15,7 +15,7 @@ class SetUserPassword implements SetsUserPasswords
public function set(mixed $user, array $input): void
{
Validator::make($input, [
'password' => ['required', 'string', new Password, 'confirmed'],
'password' => ['required', 'string', Password::default(), 'confirmed'],
])->validateWithBag('setPassword');

$user->forceFill([
Expand Down

0 comments on commit cbd4272

Please sign in to comment.