Skip to content

Commit

Permalink
Dusting 🧹
Browse files Browse the repository at this point in the history
  • Loading branch information
techenby committed Apr 25, 2024
1 parent 5ea1847 commit cc8bc39
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/Auth/NewPasswordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Password;
use Illuminate\Support\Str;
use Illuminate\Validation\Rules;
use Illuminate\Validation\Rules\Password as PasswordRule;
use Illuminate\View\View;

class NewPasswordController extends Controller
Expand All @@ -32,7 +32,7 @@ public function store(Request $request): RedirectResponse
$request->validate([
'token' => ['required'],
'email' => ['required', 'email'],
'password' => ['required', 'confirmed', Rules\Password::defaults()],
'password' => ['required', 'confirmed', PasswordRule::defaults()],
]);

// Here we will attempt to reset the user's password. If it is successful we
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/Auth/RegisteredUserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Hash;
use Illuminate\Validation\Rules;
use Illuminate\Validation\Rules\Password as PasswordRule;
use Illuminate\View\View;

class RegisteredUserController extends Controller
Expand All @@ -32,7 +32,7 @@ public function store(Request $request): RedirectResponse
$request->validate([
'name' => ['required', 'string', 'max:255'],
'email' => ['required', 'string', 'lowercase', 'email', 'max:255', 'unique:' . User::class],
'password' => ['required', 'confirmed', Rules\Password::defaults()],
'password' => ['required', 'confirmed', PasswordRule::defaults()],
]);

$user = User::create([
Expand Down

0 comments on commit cc8bc39

Please sign in to comment.