This commit is contained in:
2024-12-03 12:13:18 +03:00
parent c0bedcb5ee
commit aff394ae72
6 changed files with 49 additions and 5 deletions

View File

@ -16,4 +16,13 @@ class CreateUserForm extends FormModel
];
}
public function rulesForUpdate(): array
{
return [
'username' => 'required|min-str-len:5|max-str-len:30',
'password' => '',
'email' => 'required|email'
];
}
}