Skip to content

Commit e5ec992

Browse files
autocomplete with email in email fields (#6502)
1 parent 4313998 commit e5ec992

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

priv/templates/phx.gen.auth/login_live.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web
4747
field={f[:email]}
4848
type="email"
4949
label="Email"
50-
autocomplete="username"
50+
autocomplete="email"
5151
required
5252
phx-mounted={JS.focus()}
5353
/>
@@ -71,7 +71,7 @@ defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web
7171
field={f[:email]}
7272
type="email"
7373
label="Email"
74-
autocomplete="username"
74+
autocomplete="email"
7575
required
7676
/>
7777
<.input

priv/templates/phx.gen.auth/registration_new.html.heex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
field={f[:email]}
1919
type="email"
2020
label="Email"
21-
autocomplete="username"
21+
autocomplete="email"
2222
required
2323
phx-mounted={JS.focus()}
2424
/>

priv/templates/phx.gen.auth/session_new.html.heex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
field={f[:email]}
3434
type="email"
3535
label="Email"
36-
autocomplete="username"
36+
autocomplete="email"
3737
required
3838
phx-mounted={JS.focus()}
3939
/>
@@ -50,7 +50,7 @@
5050
field={f[:email]}
5151
type="email"
5252
label="Email"
53-
autocomplete="username"
53+
autocomplete="email"
5454
required
5555
/>
5656
<.input

priv/templates/phx.gen.auth/settings_edit.html.heex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<.form :let={f} for={@email_changeset} action={~p"<%= schema.route_prefix %>/settings"} id="update_email">
1010
<input type="hidden" name="action" value="update_email" />
1111

12-
<.input field={f[:email]} type="email" label="Email" autocomplete="username" required />
12+
<.input field={f[:email]} type="email" label="Email" autocomplete="email" required />
1313

1414
<.button variant="primary" phx-disable-with="Changing...">Change Email</.button>
1515
</.form>

0 commit comments

Comments
 (0)