fix reset password bug (#274)

感谢PR
pull/276/head
chnliyong 2016-07-08 16:22:38 +08:00 committed by 老广
parent 1614dd5a4d
commit ecfb2f3d40
1 changed files with 1 additions and 1 deletions

View File

@ -323,7 +323,7 @@ def reset_password(request):
else:
user = get_object(User, uuid=uuid_r)
if user:
user.password = PyCrypt.md5_crypt(password)
user.set_password(password)
user.save()
return http_success(request, u'密码重设成功')
else: