From da345717692bc884dd66249b16304ec218d2ae42 Mon Sep 17 00:00:00 2001 From: NoseSnatcher Date: Wed, 16 Oct 2024 19:48:18 +0200 Subject: [PATCH] Fix numbering of recovery codes when downloading or copying them Closes #33933 Signed-off-by: NoseSnatcher --- .../keycloak.v2/login/login-recovery-authn-code-config.ftl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/src/main/resources/theme/keycloak.v2/login/login-recovery-authn-code-config.ftl b/themes/src/main/resources/theme/keycloak.v2/login/login-recovery-authn-code-config.ftl index f1f6c8cfe5..a892c4d93d 100644 --- a/themes/src/main/resources/theme/keycloak.v2/login/login-recovery-authn-code-config.ftl +++ b/themes/src/main/resources/theme/keycloak.v2/login/login-recovery-authn-code-config.ftl @@ -110,7 +110,7 @@ for (let i = 0; i < recoveryCodes.length; i++) { const recoveryCodeLiElement = recoveryCodes[i].innerText; <#noparse> - recoveryCodeList += `${i}: ${recoveryCodeLiElement}\r\n`; + recoveryCodeList += `${i+1}: ${recoveryCodeLiElement}\r\n`; }