philomena/lib/philomena_web/templates/session/totp/new.html.slime

13 lines
460 B
Text
Raw Normal View History

2019-11-13 06:28:02 +01:00
h1 Two Factor Authentication
= form_for @changeset, Routes.session_totp_path(@conn, :create), [as: :user, method: "post"], fn f ->
.field
h4 Please enter your 2FA code
= text_input f, :twofactor_token, class: "input", placeholder: "6-digit code", required: true, autofocus: true, autocomplete: "off"
.field
=> checkbox f, :remember_me, class: "input"
= label f, :remember_me, "Remember this device"
2019-11-13 06:28:02 +01:00
= submit "Sign in", class: "button"