This commit is contained in:
u2nyakim 2025-08-28 14:57:58 +08:00
parent 0ac7d5d965
commit aed7fb6141

View File

@ -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'
];