From d8542e2b9988bfe425bd95905b1c2e67b55903ee Mon Sep 17 00:00:00 2001 From: HuangZhi Date: Tue, 18 Jul 2023 16:25:16 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controller/login.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/controller/login.go b/src/controller/login.go index 0aaed8a..7780228 100644 --- a/src/controller/login.go +++ b/src/controller/login.go @@ -63,7 +63,7 @@ func UserLoginV2(c *gin.Context) { } loginInf.UserUnLock(userInfo.Id) - // TODO STEP2 用户和ip没有加入到访问规则登录不上提醒 + //用户和ip没有加入到访问规则登录不上提醒 if config.AccessRuleState == 1 { ip := util.RemoteIp(c.Request) svc := service.AccessRuleSvc{} @@ -212,7 +212,7 @@ func UserPhoneLogin(c *gin.Context) { return } - // TODO STEP2 用户和ip没有加入到访问规则登录不上提醒 + // 用户和ip没有加入到访问规则登录不上提醒 if config.AccessRuleState == 1 { ip := util.RemoteIp(c.Request) svc := service.AccessRuleSvc{} @@ -222,13 +222,13 @@ func UserPhoneLogin(c *gin.Context) { } } - // TODO STEP3 密码强弱提醒 + // 密码强弱提醒 // 密码强弱提醒 if config.ForceUpdateState == 1 && config.MinPwdLevel > userInfo.PwdLevel { SendJsonResponse(c, resp.FAIL.ErrorDetail(errors.New("密码强度弱,请联系管理员修改密码!")), nil) return } - // TODO STEP4 验证码正确性校验 + // 验证码正确性校验 exist, err := loginInf.VerifyPhoneCode(req.Phone) if err != nil { SendJsonResponse(c, resp.FAIL.ErrorDetail(err), nil) -- 2.26.0