Browse Source

shopify忘记密码正则判断修改

linhaohong 6 tháng trước cách đây
mục cha
commit
6992925517
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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()