Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions priv/templates/phx.gen.auth/login_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web
type="email"
label="Email"
autocomplete="email"
spellcheck="false"
required
phx-mounted={JS.focus()}
/>
Expand All @@ -72,13 +73,15 @@ defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web
type="email"
label="Email"
autocomplete="email"
spellcheck="false"
required
/>
<.input
field={@form[:password]}
type="password"
label="Password"
autocomplete="current-password"
spellcheck="false"
/>
<.button class="btn btn-primary w-full" name={@form[:remember_me].name} value="true">
Log in and stay logged in <span aria-hidden="true">→</span>
Expand Down
1 change: 1 addition & 0 deletions priv/templates/phx.gen.auth/registration_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web
type="email"
label="Email"
autocomplete="username"
spellcheck="false"
required
phx-mounted={JS.focus()}
/>
Expand Down
1 change: 1 addition & 0 deletions priv/templates/phx.gen.auth/registration_new.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
type="email"
label="Email"
autocomplete="email"
spellcheck="false"
required
phx-mounted={JS.focus()}
/>
Expand Down
3 changes: 3 additions & 0 deletions priv/templates/phx.gen.auth/session_new.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
type="email"
label="Email"
autocomplete="email"
spellcheck="false"
required
phx-mounted={JS.focus()}
/>
Expand All @@ -51,13 +52,15 @@
type="email"
label="Email"
autocomplete="email"
spellcheck="false"
required
/>
<.input
field={f[:password]}
type="password"
label="Password"
autocomplete="current-password"
spellcheck="false"
/>
<.button class="btn btn-primary w-full" name={@form[:remember_me].name} value="true">
Log in and stay logged in <span aria-hidden="true">→</span>
Expand Down
11 changes: 10 additions & 1 deletion priv/templates/phx.gen.auth/settings_edit.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@
<.form :let={f} for={@email_changeset} action={~p"<%= schema.route_prefix %>/settings"} id="update_email">
<input type="hidden" name="action" value="update_email" />

<.input field={f[:email]} type="email" label="Email" autocomplete="email" required />
<.input
field={f[:email]}
type="email"
label="Email"
autocomplete="email"
spellcheck="false"
required
/>

<.button variant="primary" phx-disable-with="Changing...">Change Email</.button>
</.form>
Expand All @@ -24,13 +31,15 @@
type="password"
label="New password"
autocomplete="new-password"
spellcheck="false"
required
/>
<.input
field={f[:password_confirmation]}
type="password"
label="Confirm new password"
autocomplete="new-password"
spellcheck="false"
required
/>
<.button variant="primary" phx-disable-with="Changing...">
Expand Down
4 changes: 4 additions & 0 deletions priv/templates/phx.gen.auth/settings_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web
type="email"
label="Email"
autocomplete="username"
spellcheck="false"
required
/>
<.button variant="primary" phx-disable-with="Changing...">Change Email</.button>
Expand All @@ -42,20 +43,23 @@ defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web
name={@password_form[:email].name}
type="hidden"
id="hidden_<%= schema.singular %>_email"
spellcheck="false"
value={@current_email}
/>
<.input
field={@password_form[:password]}
type="password"
label="New password"
autocomplete="new-password"
spellcheck="false"
required
/>
<.input
field={@password_form[:password_confirmation]}
type="password"
label="Confirm new password"
autocomplete="new-password"
spellcheck="false"
/>
<.button variant="primary" phx-disable-with="Saving...">
Save Password
Expand Down