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