Filter for QR code
-
Now that Wordfence supports enabling 2FA from the frontend, it would be great if we could filter the otpauth data in the generated QR code. Many sites would e.g., prefer if the website name was shown as issuer instead of “Wordfence” (since their visitors would have no idea of what Wordfence is). Some sites would prefer if the email address was included instead of the username.
This can easily be accomplished by just adding a filter to the private function
generate_otp_url
in/modules/login-security/classes/model/2fainitializationdata.php
, passing the base32 encoded secret as an argument. Even better would be if the settings for issuer and included user identifier (user_email or user_login) were available from the admin pages or included as parameters for the shortcode.
- The topic ‘Filter for QR code’ is closed to new replies.