2023-10-24 15:17:16 +08:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @copyright Copyright (c) 2021 勾股工作室
|
|
|
|
* @license https://opensource.org/licenses/GPL-3.0
|
|
|
|
* @link https://www.gougucms.com
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace app\home\validate;
|
|
|
|
|
|
|
|
use think\Validate;
|
|
|
|
|
|
|
|
class UserCheck extends Validate
|
|
|
|
{
|
|
|
|
protected $rule = [
|
|
|
|
'username' => 'require',
|
|
|
|
'password' => 'require',
|
2023-10-27 16:34:12 +08:00
|
|
|
'captcha' => 'captcha',
|
2023-10-24 15:17:16 +08:00
|
|
|
];
|
|
|
|
|
|
|
|
protected $message = [
|
|
|
|
'username.require' => '用户名不能为空',
|
|
|
|
'password.require' => '密码不能为空',
|
2023-10-27 16:34:12 +08:00
|
|
|
'captcha.require' => '验证码不能为空',
|
|
|
|
'captcha.captcha' => '验证码不正确',
|
2023-10-24 15:17:16 +08:00
|
|
|
];
|
|
|
|
}
|