Browse Source

Use hostname as 2fa barcode identifier.

Raphael Schneeberger 7 years ago
parent
commit
15a11a9ce5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      web/inc/2fa/secret.php

+ 1 - 1
web/inc/2fa/secret.php

@@ -8,6 +8,6 @@ use \RobThree\Auth\TwoFactorAuth;
 $tfa = new TwoFactorAuth('Hestia Control Panel');
 
 $secret = $tfa->createSecret(160);  // Though the default is an 80 bits secret (for backwards compatibility reasons) we recommend creating 160+ bits secrets (see RFC 4226 - Algorithm Requirements)
-$qrcode = $tfa->getQRCodeImageAsDataUri('Hestia Control Panel', $secret);
+$qrcode = $tfa->getQRCodeImageAsDataUri(gethostname(), $secret);
 
 echo $secret . "-" . $qrcode;