Skip to content

Commit

Permalink
feat(users): Tweaks password_change view to address mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ERosendo committed Oct 2, 2024
1 parent ebf2691 commit d6a81eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bc/users/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def password_change(request: AuthenticatedHttpRequest) -> HttpResponse:
form.save()
msg = message_dict["pwd_changed_successfully"]
messages.add_message(request, msg["level"], msg["message"])
update_session_auth_hash(request, form.user)
update_session_auth_hash(request, request.user)
return HttpResponseRedirect(reverse("password_change"))
else:
form = PasswordChangeForm(user=request.user)
Expand Down

0 comments on commit d6a81eb

Please sign in to comment.