2022-03-09 20:03:29 +00:00
|
|
|
extends ../partials/layout.pug
|
|
|
|
|
|
|
|
block title
|
2022-03-19 10:25:37 +00:00
|
|
|
|Two-factor authentication | Icy Network
|
2022-03-09 20:03:29 +00:00
|
|
|
|
|
|
|
block body
|
2022-03-09 21:10:08 +00:00
|
|
|
include ../partials/logo.pug
|
|
|
|
div.container
|
|
|
|
div.center-box
|
|
|
|
h1 Activate two-factor authentication
|
|
|
|
if message.text
|
|
|
|
if message.error
|
|
|
|
.alert.alert-danger
|
|
|
|
span #{message.text}
|
|
|
|
else
|
|
|
|
.alert.alert-success
|
|
|
|
span #{message.text}
|
|
|
|
|
|
|
|
div.qr-preview
|
|
|
|
img(src=qrcode)
|
2022-03-09 20:03:29 +00:00
|
|
|
|
2022-03-15 17:00:15 +00:00
|
|
|
form(method="post",autocomplete="off")
|
2022-03-09 21:10:08 +00:00
|
|
|
div.form-container
|
|
|
|
input#csrf(type="hidden", name="csrf", value=csrf)
|
|
|
|
label.form-label(for="code") Code from authenticator app
|
2022-03-10 18:31:05 +00:00
|
|
|
input.form-control#code(type="text", name="code", autofocus, placeholder="xxxxxx")
|
2022-03-09 21:10:08 +00:00
|
|
|
button.btn.btn-primary(type="submit") Activate
|