I would like to create a simple live view form of for Pow User. The form will call “validate” action, every time the field change, as defined in the Controller.
I tried to use pow_changeset/2 and password_changeset/3 both somehow clear password when I tried to input the password_confirmation, and vice versa. Is there any other way to validate that without clearing the other field?
Hi @yos1p, this is documented in the LiveView docs:
For security reasons, password field values are not reused when rendering a password input tag. This requires explicitly setting the
:value in your markup
<%= password_input f, :password, value: input_value(f, :password) %>
<%= password_input f, :password_confirmation, value: input_value(f, :password_confirmation) %>