Commit ecfb2f3d authored by chnliyong's avatar chnliyong Committed by 老广

fix reset password bug (#274)

感谢PR
parent 1614dd5a
......@@ -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:
......
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