Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
reg-app
Regapp
Commits
65c96d83
Commit
65c96d83
authored
Dec 10, 2020
by
michael.simon
Browse files
display seed for newly generated totp token
parent
51901c5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
bwreg-webapp/src/main/webapp/user/twofa.xhtml
View file @
65c96d83
...
...
@@ -104,6 +104,7 @@
<p:outputLabel
for=
"@next"
value=
"#{messages.twofa_active}:"
/>
<h:outputText
value=
"#{token.isactive ? messages.yes : messages.no}"
/>
</h:panelGrid>
<p:panel
style=
"margin: 8px;"
rendered=
"#{! token.isactive and (token.tokenDesc.contains('INIT'))}"
>
<h:outputText
value=
"#{messages.twofa_token_not_init}"
style=
"color:red;"
/>
...
...
@@ -180,13 +181,17 @@
<h:panelGrid
columns=
"2"
>
<p:outputLabel
for=
"@next"
value=
"#{messages.twofa_serial}:"
/>
<h:outputText
value=
"#{twoFaUserBean.createTokenResponse.detail.serial}"
/>
<p:outputLabel
for=
"@next"
value=
"#{messages.twofa_code}:"
/>
<p:inputText
id=
"totpText"
autocomplete=
"false"
value=
"#{twoFaUserBean.totpCode}"
/>
</h:panelGrid>
<p:commandButton
id=
"checkTotpButton"
action=
"#{twoFaUserBean.checkAuthenticatorToken()}"
value=
"#{messages.check}"
update=
"totpResponsePanel"
/>
</p:outputPanel>
<p:outputLabel
for=
"@next"
value=
"Seed:"
/>
<h:outputText
value=
"#{twoFaUserBean.createTokenResponse.detail.otpkey.value}"
/>
</h:panelGrid>
</h:panelGroup>
</p:panel>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment