Extra space in TOTP url

D

digitalpoint

Guest
Member
When generating the url for Google Authenticator (or other TOTP apps), there's an extra space before $user.

In XF\Tfa\Totp.php:
PHP:

Code:

Code:
$otpUrl = GoogleAuthenticator::getKeyUri('totp', "$issuer: $user", $config['secret'], null, [
   'issuer' => $issuer
]);

should be:
PHP:

Code:

Code:
$otpUrl = GoogleAuthenticator::getKeyUri('totp', "$issuer:$user", $config['secret'], null, [
   'issuer' => $issuer
]);

It's not normally noticeable, because Google Authenticator app cleans it up and...

Read more

Continue reading...
 
BlackSpigot General Chat
Rules Help Users
    L @ LimitBreaker: Hi ! I'm still looking if someone is interested by the Pixelmon Reforged 1.12.2-8.4.3...
    Top