Skip to content

Commit

Permalink
Ensure 8 character minimum password length
Browse files Browse the repository at this point in the history
  • Loading branch information
cdubz committed Sep 27, 2021
1 parent 419fcc2 commit f7a95cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/Http/Requests/UpdateUserRequest.php
Expand Up @@ -16,8 +16,7 @@ public function rules(): array
$rules = [
'username' => ['required', 'string', Rule::unique('users')->ignore($this->user)],
'name' => ['required', 'string'],
'password' => ['nullable', 'string', 'confirmed'],
'password_confirmation' => ['nullable', 'string'],
'password' => ['nullable', 'string', 'min:8', 'confirmed'],
'admin' => ['nullable', 'boolean'],
'image' => ['nullable', 'file', 'mimes:jpg,png,gif'],
'remove_image' => ['nullable', 'boolean'],
Expand Down

0 comments on commit f7a95cc

Please sign in to comment.