user update password null

pull/26/head
ibuler 2015-12-17 11:05:43 +08:00
parent da7cc102a3
commit f8213a1a2a
2 changed files with 0 additions and 9 deletions

View File

@ -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:

View File

@ -93,12 +93,6 @@ $('#userForm').validator({
},
fields: {
"password": {
rule: "length[6~50];check_pass",
tip: "输入密码",
ok: "",
msg: {required: "必须填写!"}
},
"name": {
rule: "required",
tip: "姓名",