новый пароль не сохранялся, теперь сохраняется
This commit is contained in:
parent
a354a7bc48
commit
494deb3cf9
@ -134,8 +134,9 @@ def view_change_password(request):
|
||||
form_valid = False
|
||||
|
||||
if form_valid:
|
||||
password_changed(post_pass1, target_user)
|
||||
target_user.set_password(post_pass1)
|
||||
target_user.save()
|
||||
password_changed(post_pass1, target_user)
|
||||
update_session_auth_hash(request, target_user)
|
||||
return render(request, 'account/change-password-done.html', {'target_user': target_user})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user