2021-01-30 20:59:12 +08:00

19 lines
522 B
PHP

<?php
namespace app\admin\validate;
use think\Validate;
class UserCheck extends Validate
{
protected $rule = [
'username' => 'require',
'password' => 'require',
'captcha' => 'require|captcha',
];
protected $message = [
'username.require' => '用户名不能为空',
'password.require' => '密码不能为空',
'captcha.require' => '验证码不能为空',
'captcha.captcha' => '验证码不正确',
];
}