chenjunkai 6 年之前
父节点
当前提交
1a03764198
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      Controller/UserController.py

+ 0 - 2
Controller/UserController.py

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