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

+ 4 - 0
Controller/UserController.py

@@ -485,6 +485,10 @@ class ForgetPwdView(TemplateView):
             User = Device_User.objects.filter(username=userName)
         elif dataValid.email_validate(userName):
             User = Device_User.objects.filter(username=userName)
+            if not User.exists():
+                pass
+            else:
+                User = Device_User.objects.filter(userEmail=userName)
         else:
             return response.json(9)
         if User: