chenjunkai 6 жил өмнө
parent
commit
edaf1f3ab2

+ 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: