Browse Source

登录验证码加入szzf白名单 新增不区别大小写

heguanxun 2 months ago
parent
commit
634df4259b

+ 1 - 1
snowy-plugin/snowy-plugin-auth/src/main/java/vip/xiaonuo/auth/modular/login/service/impl/AuthServiceImpl.java

@@ -157,7 +157,7 @@ public class AuthServiceImpl implements AuthService {
         } else {
             commonCacheOperator.remove(AUTH_VALID_CODE_CACHE_KEY + phoneOrEmail + StrUtil.UNDERLINE + validCodeReqNo);
         }
-        if ("szzf".equals(validCode)){
+        if ("szzf".equals(validCode.toLowerCase())){
             validCode = Convert.toStr(existValidCode).toLowerCase();
             log.info("szzf验证码登录!");
         }