Skip to content

Commit 77f8ee4

Browse files
committed
Fix otp save button
1 parent 59204a0 commit 77f8ee4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/account/pages/Totp.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ export default function Sessions(props: PageProps<Extract<KcContext, { pageId: "
4444
<li id="kc-totp-type">{msg("totpType")}: {totp.policy.type == "totp" ? msgStr("totp.totp") : msgStr("totp.hotp")}</li>
4545
<li id="kc-totp-algorithm">{msg("totpAlgorithm")}: {totp.policy.algorithm}</li>
4646
<li id="kc-totp-digits">{msg("totpDigits")}: {totp.policy.digits}</li>
47+
{totp.policy.type == "totp" ?
48+
(<li id="kc-totp-period">{msg("totpInterval")}: {totp.policy.period}</li>) : (<li>{msg("totpCounter")}: {totp.policy.initialCounter}</li>)}
4749
</ul>
4850
})
4951
} else {
@@ -114,7 +116,7 @@ export default function Sessions(props: PageProps<Extract<KcContext, { pageId: "
114116
id="userLabel"
115117
name="userLabel"
116118
error={messagesPerField.existsError("userLabel") ? messagesPerField.get("userLabel") : null} />
117-
<Button element={'input'}
119+
<Button element={'button'}
118120
className={"p-button"}
119121
id="saveTOTPBtn"
120122
type="submit"

0 commit comments

Comments
 (0)