Support » Plugin: Two Factor Authentication » Barcode fails for users with space in their name

  • Resolved jwarren


    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/ name with space?secret=UISGHIUFSGHIUFGHGF&' 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 rawurlencode

    Update 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.

    • This topic was modified 4 years, 9 months ago by jwarren.
Viewing 1 replies (of 1 total)
  • Plugin Author David Anderson


    Thanks. This has now been done. I could not reproduce the original problem in my OTP apps (they were happy without the encoding), but they are happy with the changed version too.

Viewing 1 replies (of 1 total)
  • The topic ‘Barcode fails for users with space in their name’ is closed to new replies.