فهرست منبع

修改密码判断密码长度

locky 3 سال پیش
والد
کامیت
7903196b4e
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      Controller/UserController.py

+ 2 - 2
Controller/UserController.py

@@ -425,8 +425,8 @@ class v3ChangePwdView(TemplateView):
         except Exception as e:
             return response.json(111)
         else:
-            if oldPwd is None and newPwd is None:
-                return response.json(800)
+            if oldPwd is None or newPwd is None or len(newPwd) < 6:
+                return response.json(111)
             tko = TokenObject(token)
             response.lang = tko.lang
             if tko.code != 0: