mirror of https://github.com/jumpserver/jumpserver
parent
1614dd5a4d
commit
ecfb2f3d40
|
@ -323,7 +323,7 @@ def reset_password(request):
|
||||||
else:
|
else:
|
||||||
user = get_object(User, uuid=uuid_r)
|
user = get_object(User, uuid=uuid_r)
|
||||||
if user:
|
if user:
|
||||||
user.password = PyCrypt.md5_crypt(password)
|
user.set_password(password)
|
||||||
user.save()
|
user.save()
|
||||||
return http_success(request, u'密码重设成功')
|
return http_success(request, u'密码重设成功')
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue