This repository has been archived on 2022-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
IcyNet.eu/views/totp.pug

31 lines
852 B
Plaintext
Raw Normal View History

2017-08-02 22:35:10 +00:00
extends layout.pug
block title
|Icy Network - Activate Authenticator
block body
.wrapper
.boxcont
.box#login
.left
h1 Two Factor Authentication
if message
if message.error
.message.error
else
.message
span #{message.text}
img.qr(src="//api.qrserver.com/v1/create-qr-code/?data=" + uri)
form#totpForm(method="POST", action="")
input(type="hidden", name="csrf", value=csrf)
label(for="code") Enter the Code
input(type="text", name="code", id="code")
input(type="submit", value="Enable Now")
.right
h3 How to use
ol
li Scan the QR Code with your authenticator app
li Enter the one-time code given to you
li You will now be asked for a code every time you log in
h3 Authenticator app
p We recommend using Google Authenticator