Commit f8213a1a authored by ibuler's avatar ibuler

user update password null

parent da7cc102
......@@ -425,9 +425,6 @@ def change_info(request):
if '' in [name, email]:
error = '不能为空'
if len(password) < 6:
error = '密码须大于6位'
if not error:
User.objects.filter(id=user_id).update(name=name, email=email)
if len(password) > 0:
......
......@@ -93,12 +93,6 @@ $('#userForm').validator({
},
fields: {
"password": {
rule: "length[6~50];check_pass",
tip: "输入密码",
ok: "",
msg: {required: "必须填写!"}
},
"name": {
rule: "required",
tip: "姓名",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment