Browse Source

新增23位验证控制

chenshibin 4 năm trước cách đây
mục cha
commit
c73b22b2e2
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      Controller/UidUser.py

+ 2 - 1
Controller/UidUser.py

@@ -62,7 +62,8 @@ def addInterface(request):
             userID = tko.userID
             re_uid = re.compile(r'^[A-Za-z0-9]{20}$')
             sy_uid = re.compile(r'^[A-Za-z0-9]{14}$')
-            if re_uid.match(UID) or sy_uid.match(UID):
+            sy_uid23 = re.compile(r'^[A-Za-z0-9]{23}$')
+            if re_uid.match(UID) or sy_uid.match(UID) or sy_uid23.match(UID):
                 is_ap = int(is_ap)
                 is_exist = UidUserModel.objects.filter(UID=UID, userID_id=userID, is_ap=is_ap)
                 if is_exist: