Skip to content

Conversation

@dd32
Copy link
Member

@dd32 dd32 commented Jul 30, 2025

Fixes #710 - Full props to @fb656720 for change.

What?

2FAS authenticator doesn't support the url-encoded format, while other authenticator apps appear to support this, it doesn't appear to be allowable by the standard.

Why?

How?

Avoids encoding the TOTP QR code url for display, by using esc_url_raw() in the provider.
URL is properly encoded for display at display time, and encoded properly for JS usage.

Testing Instructions

  1. Verify that TOTP can be setup with multiple authenticator apps

Screenshots or screencast

Changelog Entry

Fixed: TOTP QR Code not working with 2FAS authenticator.

Added - New feature.
Changed - Existing functionality.
Deprecated - Soon-to-be removed feature.
Removed - Feature.
Fixed - Bug fix.
Security - Vulnerability.

Fixes #710 

Co-authored-by: fb656720 < 223508510 [email protected]>
Copy link
Collaborator

@kasparsd kasparsd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@kasparsd kasparsd merged commit e8ebceb into master Jul 30, 2025
6 of 54 checks passed
@kasparsd kasparsd deleted the fix/710-esc_url branch July 30, 2025 07:08
@jeffpaul jeffpaul added this to the 0.15.0 milestone Jul 31, 2025
kasparsd added a commit that referenced this pull request Sep 5, 2025
@jeffpaul jeffpaul modified the milestones: 0.15.0, 0.14.1 Sep 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

QR code not working with 2FAS authentication app

4 participants