MicroFrameWork/kernel/modules/secure/models/forms/LoginForm.php
2024-09-25 14:17:36 +03:00

18 lines
325 B
PHP

<?php
namespace kernel\modules\secure\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',
];
}
}