moved only view of OTP backup tokens to otp/new-account

master
Andrew Woodlee 2 years ago
parent 57dc82d76b
commit 7aaf2636e2

@ -1,12 +1,24 @@
extends ../layouts/main extends ../layouts/main
block content block content
div(uk-grid)
div(uk-grid).uk-flex-middle
.uk-width-expand .uk-width-expand
h1 Tokens h1.margin-remove Tokens
.uk-card-body .uk-width-auto
h3 These tokens should be saved in a safe place so you can get into your account should you lose your 2FA device button(
each token of tokens type="button",
ul.uk-list.uk-list-divider data-user= user,
li onclick="return dtp.adminApp.generateOTPTokens(event);",
.uk-text-small= token.token ).uk-button.dtp-button-danger
+renderButtonIcon('fa-repeat', 'Generate OTP Tokens')
//- regenerate route should set this so tokens can be viewed once.
if otpRegen
section.uk-section.uk-section-default.uk-section-xsmall
.uk-container
h3 You should save these tokens in a safe place. This is the only time you will see them.
p These tokens should be saved in a safe place so you can get into your account should you lose your 2FA device
each token of tokens
ul.uk-list.uk-list-divider
li
.uk-text-small= token.token

@ -5,6 +5,16 @@ block content
.uk-container .uk-container
h1 2FA Setup Successful h1 2FA Setup Successful
section.uk-section.uk-section-default.uk-section-xsmall
.uk-container
h3 You should save these tokens in a safe place. This is the only time you will see them.
p These tokens should be saved in a safe place so you can get into your account should you lose your 2FA device
each token of otpAccount.backupTokens
ul.uk-list.uk-list-divider
li
.uk-text-small= token.token
section.uk-section.uk-section-default.uk-section-xsmall section.uk-section.uk-section-default.uk-section-xsmall
.uk-container .uk-container
p Your account is now enabled with access to #{site.name} #{otpServiceName}. p Your account is now enabled with access to #{site.name} #{otpServiceName}.

Loading…
Cancel
Save