浏览代码

shopify忘记密码正则判断修改

linhaohong 6 月之前
父节点
当前提交
6992925517
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Controller/ShopifyController.py

+ 1 - 1
Controller/ShopifyController.py

@@ -376,7 +376,7 @@ class ShopifyView(View):
             # 至少包含任意两类字符
             categories = sum([has_upper, has_lower, has_digit, has_special])
 
-            if re_flag is not True and categories > 2:
+            if re_flag is not True or categories < 2:
                 return response.json(109)
 
             reds = RedisObject()