Skip to content

Commit 76f5a07

Browse files
committed
Revert Changes
1 parent af68cb3 commit 76f5a07

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

app/Actions/Fortify/CreateNewUser.php

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

55
use App\Models\User;
6-
use Illuminate\Support\Facades\Hash;
76
use Illuminate\Support\Facades\Validator;
87
use Illuminate\Validation\Rule;
98
use Laravel\Fortify\Contracts\CreatesNewUsers;
@@ -34,7 +33,7 @@ public function create(array $input): User
3433
return User::create([
3534
'name' => $input['name'],
3635
'email' => $input['email'],
37-
'password' => Hash::make($input['password']),
36+
'password' => $input['password'],
3837
]);
3938
}
4039
}

app/Actions/Fortify/ResetUserPassword.php

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

55
use App\Models\User;
6-
use Illuminate\Support\Facades\Hash;
76
use Illuminate\Support\Facades\Validator;
87
use Laravel\Fortify\Contracts\ResetsUserPasswords;
98

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

2524
$user->forceFill([
26-
'password' => Hash::make($input['password']),
25+
'password' => $input['password'],
2726
])->save();
2827
}
2928
}

app/Http/Controllers/Settings/PasswordController.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use App\Http\Controllers\Controller;
66
use Illuminate\Http\RedirectResponse;
77
use Illuminate\Http\Request;
8-
use Illuminate\Support\Facades\Hash;
98
use Illuminate\Validation\Rules\Password;
109
use Inertia\Inertia;
1110
use Inertia\Response;
@@ -31,7 +30,7 @@ public function update(Request $request): RedirectResponse
3130
]);
3231

3332
$request->user()->update([
34-
'password' => Hash::make($validated['password']),
33+
'password' => $validated['password'],
3534
]);
3635

3736
return back();

0 commit comments

Comments
 (0)