From 582a5efaa3c88f5e2d612e4fa8d944c061546046 Mon Sep 17 00:00:00 2001 From: Andrew Dryga Date: Thu, 28 Mar 2024 15:29:51 -0600 Subject: [PATCH] fix(portal): Do not redact userpass virtual state (its a virtual field anyway) (#4370) Closes #4354 --- elixir/apps/domain/lib/domain/auth/adapters/userpass.ex | 5 ----- 1 file changed, 5 deletions(-) diff --git a/elixir/apps/domain/lib/domain/auth/adapters/userpass.ex b/elixir/apps/domain/lib/domain/auth/adapters/userpass.ex index cafde6127..b55762519 100644 --- a/elixir/apps/domain/lib/domain/auth/adapters/userpass.ex +++ b/elixir/apps/domain/lib/domain/auth/adapters/userpass.ex @@ -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} =