diff --git a/login/login-config-totp.ftl b/login/login-config-totp.ftl
index 8014585..5b21da4 100644
--- a/login/login-config-totp.ftl
+++ b/login/login-config-totp.ftl
@@ -1,4 +1,5 @@
<#import "template.ftl" as layout>
+<#import "password-commons.ftl" as passwordCommons>
<@layout.registrationLayout displayRequiredFields=false displayMessage=!messagesPerField.existsError('totp','userLabel'); section>
<#if section = "header">
@@ -88,6 +89,10 @@
+
+ <@passwordCommons.logoutOtherSessions/>
+
+
<#if isAppInitiatedAction??>
#if>
-@layout.registrationLayout>
\ No newline at end of file
+@layout.registrationLayout>
diff --git a/login/login-recovery-authn-code-config.ftl b/login/login-recovery-authn-code-config.ftl
index 5bd3559..ef81710 100644
--- a/login/login-recovery-authn-code-config.ftl
+++ b/login/login-recovery-authn-code-config.ftl
@@ -1,4 +1,5 @@
<#import "template.ftl" as layout>
+<#import "password-commons.ftl" as passwordCommons>
<@layout.registrationLayout; section>
<#if section = "header">
@@ -38,17 +39,18 @@
-
+
-
+
-
+ <@passwordCommons.logoutOtherSessions/>
+
<#if isAppInitiatedAction??>
diff --git a/login/webauthn-register.ftl b/login/webauthn-register.ftl
index 1beb31e..3083ce5 100644
--- a/login/webauthn-register.ftl
+++ b/login/webauthn-register.ftl
@@ -1,4 +1,6 @@
<#import "template.ftl" as layout>
+ <#import "password-commons.ftl" as passwordCommons>
+
<@layout.registrationLayout; section>
<#if section = "title">
title
@@ -15,6 +17,7 @@
+ <@passwordCommons.logoutOtherSessions/>
@@ -35,7 +38,7 @@
let userid = "${userid}";
let username = "${username}";
- let signatureAlgorithms = "${signatureAlgorithms}";
+ let signatureAlgorithms =[<#list signatureAlgorithms as sigAlg>${sigAlg},#list>]
let pubKeyCredParams = getPubKeyCredParams(signatureAlgorithms);
let rpEntityName = "${rpEntityName}";
@@ -127,13 +130,12 @@
});
}
- function getPubKeyCredParams(signatureAlgorithms) {
+ function getPubKeyCredParams(signatureAlgorithmsList) {
let pubKeyCredParams = [];
- if (signatureAlgorithms === "") {
+ if (signatureAlgorithmsList === []) {
pubKeyCredParams.push({type: "public-key", alg: -7});
return pubKeyCredParams;
}
- let signatureAlgorithmsList = signatureAlgorithms.split(',');
for (let i = 0; i < signatureAlgorithmsList.length; i++) {
pubKeyCredParams.push({