backend/kernel/models/forms/LoginForm.php
2024-09-24 17:22:09 +03:00

18 lines
310 B
PHP

<?php
namespace kernel\models\forms;
use kernel\FormModel;
class LoginForm extends FormModel
{
public function rules(): array
{
return [
'username' => 'required|min-str-len:5|max-str-len:50',
'password' => 'required|min-str-len:6|max-str-len:50',
];
}
}