diff --git a/lib/ash_authentication_phoenix/components/password/input.ex b/lib/ash_authentication_phoenix/components/password/input.ex index 5bafd1d..7dbf92b 100644 --- a/lib/ash_authentication_phoenix/components/password/input.ex +++ b/lib/ash_authentication_phoenix/components/password/input.ex @@ -3,6 +3,8 @@ defmodule AshAuthentication.Phoenix.Components.Password.Input do field_class: "CSS class for `div` elements surrounding the fields.", label_class: "CSS class for `label` elements.", input_class: "CSS class for text/password `input` elements.", + identity_input_label: "Label for identity (email) field.", + password_input_label: "Label for password field.", input_class_with_error: "CSS class for text/password `input` elements when there is a validation error.", submit_class: "CSS class for the form submit `input` element.", @@ -64,8 +66,8 @@ defmodule AshAuthentication.Phoenix.Components.Password.Input do assigns = assigns - |> assign(:identity_field, identity_field) - |> assign_new(:input_type, fn -> + |> assign(:identity_field, identity_field) + |> assign_new(:input_type, fn -> identity_field |> to_string() |> String.contains?("email") @@ -84,7 +86,7 @@ defmodule AshAuthentication.Phoenix.Components.Password.Input do ~H"""