From 0f4bf5ee80442e56516e5408b69132e2adc6effb Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Wed, 1 Feb 2023 15:28:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B02?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/validate/UserCheck.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 app/admin/validate/UserCheck.php 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' => '验证码不正确', + ]; +}