igfs/app/models/forms/CreateUserForm.php

19 lines
352 B
PHP
Raw Normal View History

2024-07-24 14:07:45 +03:00
<?php
namespace app\models\forms;
use kernel\FormModel;
class CreateUserForm extends FormModel
{
public function rules(): array
{
return [
'username' => 'required|min-str-len:5|max-str-len:30',
'password' => 'required|min-str-len:5|max-str-len:30',
'email' => 'required|email'
];
}
}