extends ../partials/layout.pug
block title
|Two-factor authentication | Icy Network
block body
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
div.qr-preview
img(src=qrcode)
form(method="post",autocomplete="off")
div.form-container
input#csrf(type="hidden", name="_csrf", value=csrf)
label.form-label(for="code") Code from authenticator app
input.form-control#code(type="text", name="code", autofocus, placeholder="xxxxxx")
button.btn.btn-primary(type="submit") Activate