[RSS Feed/News] Extra space in TOTP url

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
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:
$otpUrl = GoogleAuthenticator::getKeyUri('totp', "$issuer: $user", $config['secret'], null, [
   'issuer' => $issuer
]);

should be:
PHP:

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 trims it...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom