mirror of https://github.com/kcal-app/kcal.git
Ensure 8 character minimum password length
This commit is contained in:
parent
419fcc2cb9
commit
f7a95cc020
|
|
@ -16,8 +16,7 @@ class UpdateUserRequest extends FormRequest
|
|||
$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'],
|
||||
|
|
|
|||
Loading…
Reference in New Issue