up.
This commit is contained in:
parent
0ac7d5d965
commit
aed7fb6141
@ -7,8 +7,8 @@ use think\Validate;
|
|||||||
|
|
||||||
class LoginValidate extends Validate
|
class LoginValidate extends Validate
|
||||||
{
|
{
|
||||||
protected array $must = ['username', 'password'];
|
protected $must = ['username', 'password'];
|
||||||
protected array $rule = [
|
protected $rule = [
|
||||||
'username' => 'max:20',
|
'username' => 'max:20',
|
||||||
'password' => 'min:5|max:64'
|
'password' => 'min:5|max:64'
|
||||||
];
|
];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user