This repository has been archived on 2024-06-14. You can view files and clone it, but cannot push or open issues or pull requests.
icynet-auth-server/views/two-factor/activate.pug

28 lines
800 B
Plaintext
Raw Permalink Normal View History

2022-03-09 20:03:29 +00:00
extends ../partials/layout.pug
block title
|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
form(method="post",autocomplete="off")
2022-03-09 21:10:08 +00:00
div.form-container
2022-03-20 14:50:12 +00:00
input#csrf(type="hidden", name="_csrf", value=csrf)
2022-03-09 21:10:08 +00:00
label.form-label(for="code") Code from authenticator app
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