Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Download of Recovery Codes broken. File contains no Recovery Codes. #31260

@gruenewa

Description

@gruenewa

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

the javascript wants to parse the Recovery Codes by using

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions