diff --git a/priv/templates/phx.gen.auth/login_live.ex b/priv/templates/phx.gen.auth/login_live.ex index e3122317a8..126b7fdda9 100644 --- a/priv/templates/phx.gen.auth/login_live.ex +++ b/priv/templates/phx.gen.auth/login_live.ex @@ -47,7 +47,7 @@ defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web field={f[:email]} type="email" label="Email" - autocomplete="email" + autocomplete="username" required phx-mounted={JS.focus()} /> @@ -71,7 +71,7 @@ defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web field={f[:email]} type="email" label="Email" - autocomplete="email" + autocomplete="username" required /> <.input diff --git a/priv/templates/phx.gen.auth/registration_new.html.heex b/priv/templates/phx.gen.auth/registration_new.html.heex index e42f8f1023..e5e04aa4ce 100644 --- a/priv/templates/phx.gen.auth/registration_new.html.heex +++ b/priv/templates/phx.gen.auth/registration_new.html.heex @@ -18,7 +18,7 @@ field={f[:email]} type="email" label="Email" - autocomplete="email" + autocomplete="username" required phx-mounted={JS.focus()} /> diff --git a/priv/templates/phx.gen.auth/session_new.html.heex b/priv/templates/phx.gen.auth/session_new.html.heex index 854cd86bfa..8211694363 100644 --- a/priv/templates/phx.gen.auth/session_new.html.heex +++ b/priv/templates/phx.gen.auth/session_new.html.heex @@ -33,7 +33,7 @@ field={f[:email]} type="email" label="Email" - autocomplete="email" + autocomplete="username" required phx-mounted={JS.focus()} /> @@ -50,7 +50,7 @@ field={f[:email]} type="email" label="Email" - autocomplete="email" + autocomplete="username" required /> <.input diff --git a/priv/templates/phx.gen.auth/settings_edit.html.heex b/priv/templates/phx.gen.auth/settings_edit.html.heex index a42e4e7a6e..a1e893dfa5 100644 --- a/priv/templates/phx.gen.auth/settings_edit.html.heex +++ b/priv/templates/phx.gen.auth/settings_edit.html.heex @@ -9,7 +9,7 @@ <.form :let={f} for={@email_changeset} action={~p"<%= schema.route_prefix %>/settings"} id="update_email"> - <.input field={f[:email]} type="email" label="Email" autocomplete="email" required /> + <.input field={f[:email]} type="email" label="Email" autocomplete="username" required /> <.button variant="primary" phx-disable-with="Changing...">Change Email