2019-11-13 06:28:02 +01:00
|
|
|
h1 Two Factor Authentication
|
|
|
|
|
2024-04-29 02:55:27 +02:00
|
|
|
= form_for @changeset, ~p"/sessions/totp", [as: :user, method: "post"], fn f ->
|
2019-11-13 06:28:02 +01:00
|
|
|
.field
|
|
|
|
h4 Please enter your 2FA code
|
|
|
|
= text_input f, :twofactor_token, class: "input", placeholder: "6-digit code", required: true, autofocus: true, autocomplete: "off"
|
|
|
|
|
2020-07-28 22:56:26 +02:00
|
|
|
.field
|
2020-12-19 22:08:22 +01:00
|
|
|
=> checkbox f, :remember_me, class: "input", checked: true
|
2020-07-28 22:56:26 +02:00
|
|
|
= label f, :remember_me, "Remember this device"
|
|
|
|
|
2019-11-13 06:28:02 +01:00
|
|
|
= submit "Sign in", class: "button"
|