diff --git a/app/admin/validate/UserCheck.php b/app/admin/validate/UserCheck.php new file mode 100644 index 0000000..b74964a --- /dev/null +++ b/app/admin/validate/UserCheck.php @@ -0,0 +1,26 @@ + 'require', + 'password' => 'require', + 'captcha' => 'require|captcha', + ]; + + protected $message = [ + 'username.require' => '用户名不能为空', + 'password.require' => '密码不能为空', + 'captcha.require' => '验证码不能为空', + 'captcha.captcha' => '验证码不正确', + ]; +}