chenjunkai 6 năm trước cách đây
mục cha
commit
edaf1f3ab2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Controller/UserController.py

+ 1 - 1
Controller/UserController.py

@@ -315,7 +315,7 @@ class LoginView(TemplateView):
 
     def login(self, username, password, mcode, response):
         dataValid = DataValid()
-        if dataValid.mobile_validate(username):
+        if dataValid.name_validate(username):
             userValid = Device_User.objects.filter(username=username)
             if userValid:
                 if userValid[0].user_isValid and userValid[0].is_active: