From ecfb2f3d401f1af30b69fcc0f73bec2943042488 Mon Sep 17 00:00:00 2001 From: chnliyong Date: Fri, 8 Jul 2016 16:22:38 +0800 Subject: [PATCH] fix reset password bug (#274) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 感谢PR --- juser/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/juser/views.py b/juser/views.py index 7335f30c8..5505e3bc5 100644 --- a/juser/views.py +++ b/juser/views.py @@ -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: