Skip to content

Commit

Permalink
max 500 chars on password
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Mar 21, 2022
1 parent 1c6c991 commit 82be4f0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
Expand Up @@ -143,7 +143,7 @@ public function update(Request $request)
$request->validate([
'token' => 'required',
'email' => 'required|email',
'password' => 'required|min:1|confirmed',
'password' => 'required|min:1|confirmed|max:500',
]);

$tokenMd5 = \MicroweberPackages\User\Models\PasswordReset::where('email', $request->get('email'))
Expand Down
Expand Up @@ -83,7 +83,7 @@ public function rules()
$rules['terms'] = $rules['terms'] . ', terms_newsletter';
}
}
$rules['password'] = 'required|min:1';
$rules['password'] = 'required|min:1|max:500';


return $rules;
Expand Down
Expand Up @@ -14,6 +14,7 @@ class UserCreateRequest extends FormRequest
public function rules()
{
$rules = [
'password'=>'max:500',
'first_name'=>'max:500',
'last_name'=>'max:500',
'phone'=>'max:500',
Expand Down
Expand Up @@ -19,6 +19,7 @@ public function rules()
$ignore = Rule::unique('users')->ignore($this->id ?? 0, 'id');

return [
'password'=>'max:500',
'first_name'=>'max:500',
'last_name'=>'max:500',
'phone'=>'max:500',
Expand Down

0 comments on commit 82be4f0

Please sign in to comment.