-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Description
Before reporting an issue
- I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.
Area
login/ui
Describe the bug
When the user downloads the Recovery Codes into a file, the file does not contain any Recovery Code. Issue is that in
keycloak/themes/src/main/resources/theme/base/login/login-recovery-authn-code-config.ftl
Line 108 in 28fd38d
| function parseRecoveryCodeList() { |
var recoveryCodes = document.querySelectorAll(".kc-recovery-codes-list li");
The not working code tries to find the dom elements using a CSS style class but it should instead look for an ID:
var recoveryCodes = document.querySelectorAll("#kc-recovery-codes-list li");
Version
25.0.1
Regression
- The issue is a regression
Expected behavior
Clicking button Download to download Recovery Codes should produce a file that contains the Recovery Codes.
Actual behavior
Downloading the Recovery Codes using the download button produces a file without Recovery Codes.
How to Reproduce?
On the configure Recovery Codes page click the Download button. Then check the contents of the file.
Anything else?
No response