fix: 修复开发环境下验证码校验被跳过的问题
This commit is contained in:
@@ -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("验证码输入错误")
|
||||
|
||||
Reference in New Issue
Block a user