Skip to content

Commit

Permalink
added min:8 to the rule
Browse files Browse the repository at this point in the history
  • Loading branch information
hussainalihussain committed May 5, 2024
1 parent 1286e48 commit ded8d39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Auth/RegisteredUserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function store(Request $request)
$request->validate([
'name' => ['required', 'string', 'max:255'],
'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],
'password' => ['required', 'confirmed', 'regex:/^[a-zA-Z].*/'],
'password' => ['required', 'confirmed', 'min:8', 'regex:/^[a-zA-Z].*/'],
]);

$user = User::create([
Expand Down

0 comments on commit ded8d39

Please sign in to comment.