Disable form autocomplete in some cases (#636)

This commit is contained in:
Jamil
2022-05-19 23:06:53 -07:00
committed by GitHub
parent 500faf813a
commit fc12260256
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
<div>
<.form let={f} for={@changeset} id="account-edit" phx-target={@myself} phx-submit="save">
<.form let={f} for={@changeset} autocomplete="off" id="account-edit" phx-target={@myself} phx-submit="save">
<div class="block">
<p>Change email or enter new password below.</p>
</div>

View File

@@ -1,5 +1,5 @@
<div>
<.form let={f} for={@changeset} id="user-form" phx-target={@myself} phx-submit="save">
<.form let={f} for={@changeset} autocomplete="off" id="user-form" phx-target={@myself} phx-submit="save">
<%= if @action == :edit do %>
<div class="block">
<p>Change user email or enter new password below.</p>