Prechádzať zdrojové kódy

shopify忘记密码正则判断修改

linhaohong 7 mesiacov pred
rodič
commit
6992925517
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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()