From 24555a2f50aa4a9c0867717b508f754c8acc1e13 Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Tue, 6 Jan 2026 19:17:56 +0100 Subject: [PATCH] Revert "autocomplete with email in email fields (#6502)" This reverts commit e5ec992b81e063993f681d235452c909796349e1. --- priv/templates/phx.gen.auth/login_live.ex | 4 ++-- priv/templates/phx.gen.auth/registration_new.html.heex | 2 +- priv/templates/phx.gen.auth/session_new.html.heex | 4 ++-- priv/templates/phx.gen.auth/settings_edit.html.heex | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) 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