Barcode fails for users with space in their name
-
Using the Google Authenticator iPhone app, when I attempt to scan a barcode for a user with a space in their name, I receive the following error:
Invalid barcode The barcode 'optauth://totp/www.siteaddress.com:user name with space?secret=UISGHIUFSGHIUFGHGF&issuer=www.siteaddress.com&counter=' is not a valid authentication token barcode
There are two things that you need to do to fix this:
On line 784 of two-factor-login.php, you should wrap
user->user_login
with rawurlencodeUpdate the included jquery.qrcode plugin to the latest 0.14 version
I’ve briefly tested these changes in a local version and it fixes it for me.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Barcode fails for users with space in their name’ is closed to new replies.