MicroFrameWork/kernel/modules/secure/models/forms/LoginForm.php

18 lines
325 B
PHP
Raw Normal View History

2024-09-24 17:22:09 +03:00
<?php
2024-09-25 14:17:36 +03:00
namespace kernel\modules\secure\models\forms;
2024-09-24 17:22:09 +03:00
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',
];
}
}