bug of user.update

pull/26/head
liuzheng712 9 years ago
parent 1c3b66c1a8
commit ee443361b9

@ -443,7 +443,7 @@ def change_info(request):
# if password != user.password:
# password = CRYPTOR.md5_crypt(password)
user.update(username=name, email=email)
user.update(name=name, email=email)
User.objects.get(id=user_id).set_password(password)
msg = '修改成功'

Loading…
Cancel
Save