fix: 修复开发环境下验证码校验被跳过的问题

This commit is contained in:
2026-06-23 10:00:56 +08:00
parent 13d839cea1
commit fbf3e27aa9
+1 -1
View File
@@ -39,7 +39,7 @@ func (c *loginController) Login(ctx context.Context, req *system.UserLoginReq) (
menuList []*model.UserMenus
)
//判断验证码是否正确
debug := gmode.IsDevelop()
debug := gmode.IsProduct()
if !debug {
if !commonService.Captcha().VerifyString(req.VerifyKey, req.VerifyCode) {
err = gerror.New("验证码输入错误")