user update password null

pull/26/head
ibuler 9 years ago
parent da7cc102a3
commit f8213a1a2a

@ -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: "姓名",

Loading…
Cancel
Save