fix(portal): Do not redact userpass virtual state (its a virtual field anyway) (#4370)

Closes #4354
This commit is contained in:
Andrew Dryga
2024-03-28 15:29:51 -06:00
committed by GitHub
parent e56883ae33
commit 582a5efaa3

View File

@@ -56,11 +56,6 @@ defmodule Domain.Auth.Adapters.UserPass do
changeset
%{valid?: true} = nested_changeset ->
nested_changeset =
nested_changeset
|> Domain.Repo.Changeset.redact_field(:password)
|> Domain.Repo.Changeset.redact_field(:password_confirmation)
password_hash = Ecto.Changeset.fetch_change!(nested_changeset, :password_hash)
{changeset, _original_type} =