totp: default to remember, remove google authenticator anti-recommendation, add dark theme media query to 2FA layout

This commit is contained in:
byte[] 2020-12-19 16:08:22 -05:00
parent ef85ad26d9
commit bc5f1af22e
3 changed files with 3 additions and 4 deletions

View file

@ -7,6 +7,7 @@ html lang="en"
title Two Factor Authentication - Derpibooru
link rel="stylesheet" href=stylesheet_path(@conn, nil)
link rel="stylesheet" href=dark_stylesheet_path(@conn) media="(prefers-color-scheme: dark)"
link rel="icon" href="/favicon.ico" type="image/x-icon"
link rel="icon" href="/favicon.svg" type="image/svg+xml"

View file

@ -101,9 +101,7 @@ h1 Two Factor Authentication
a href="https://www.microsoft.com/en-us/store/p/microsoft-authenticator/9nblgggzmcj6" target="_blank" rel="noreferrer"
| Windows Mobile
| )
' Google Authenticator is
em> not
' recommended.
h4 Pair application
p
' Using the application of your choice, scan the QR code below or enter the following secret key:

View file

@ -6,7 +6,7 @@ h1 Two Factor Authentication
= text_input f, :twofactor_token, class: "input", placeholder: "6-digit code", required: true, autofocus: true, autocomplete: "off"
.field
=> checkbox f, :remember_me, class: "input"
=> checkbox f, :remember_me, class: "input", checked: true
= label f, :remember_me, "Remember this device"
= submit "Sign in", class: "button"