Skip to content

Commit

Permalink
fix: password fields should not be required on user edit - fixes #19
Browse files Browse the repository at this point in the history
  • Loading branch information
kjellberg committed Apr 22, 2024
1 parent a07ccf5 commit d18560f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/kiqr/registrations/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<%= f.input :email, placeholder: t(".form.email.placeholder"), required: true, autofocus: true %>

<div class="flex flex-col lg:flex-row justify-between items-start gap-4">
<%= f.input :password, placeholder: t(".form.password.placeholder"), required: true, hint: ("#{@minimum_password_length} characters minimum" if @minimum_password_length), input_html: { autocomplete: "new-password" } %>
<%= f.input :password_confirmation, placeholder: t(".form.password_confirmation.placeholder"), required: true, input_html: { autocomplete: "new-password" } %>
<%= f.input :password, placeholder: t(".form.password.placeholder"), hint: ("#{@minimum_password_length} characters minimum" if @minimum_password_length), input_html: { autocomplete: "new-password" } %>
<%= f.input :password_confirmation, placeholder: t(".form.password_confirmation.placeholder"), input_html: { autocomplete: "new-password" } %>
</div>

<%= f.input :current_password, placeholder: t(".form.current_password.placeholder"), hint: t(".form.current_password.hint"), required: true, input_html: { autocomplete: "current-password" } %>
Expand Down

0 comments on commit d18560f

Please sign in to comment.