15 lines
291 B
PHP
15 lines
291 B
PHP
<?php
|
|
|
|
namespace app\validate\auth;
|
|
|
|
use app\enum\ClientEnum;
|
|
use think\Validate;
|
|
|
|
class LoginValidate extends Validate
|
|
{
|
|
protected array $must = ['username', 'password'];
|
|
protected array $rule = [
|
|
'username' => 'max:20',
|
|
'password' => 'min:5|max:64'
|
|
];
|
|
} |