Skip to content

Commit

Permalink
Fixes broken QR TOTP generation
Browse files Browse the repository at this point in the history
Reports of users being block from TOTP generation, and then having backup codes set.

See: https://wordpress.slack.com/archives/C02QB8GMM/p1676976322561399
  • Loading branch information
pkevan committed Feb 21, 2023
1 parent 7a467bc commit 169a0c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wporg-two-factor.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,3 +238,7 @@ function get_edit_account_url() : string {

return $url;
}

// Temp fix for TOTP QR code being broken, see: https://meta.trac.wordpress.org/timeline?from=2023-02-21T04%3A40%3A07Z&precision=second.
remove_filter( 'block_type_metadata', 'gutenberg_block_type_metadata_multiple_view_scripts' );
remove_filter( 'block_type_metadata_settings', 'gutenberg_block_type_metadata_view_script', 10, 2 );

0 comments on commit 169a0c4

Please sign in to comment.