diff --git a/priv/templates/phx.gen.auth/login_live.ex b/priv/templates/phx.gen.auth/login_live.ex index 126b7fdda9..e3122317a8 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="username" + autocomplete="email" 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="username" + autocomplete="email" 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 e5e04aa4ce..e42f8f1023 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="username" + autocomplete="email" 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 8211694363..854cd86bfa 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="username" + autocomplete="email" required phx-mounted={JS.focus()} /> @@ -50,7 +50,7 @@ field={f[:email]} type="email" label="Email" - autocomplete="username" + autocomplete="email" 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 a1e893dfa5..a42e4e7a6e 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="username" required /> + <.input field={f[:email]} type="email" label="Email" autocomplete="email" required /> <.button variant="primary" phx-disable-with="Changing...">Change Email