Skip to content

Commit 15a11a9

Browse files
committed
Use hostname as 2fa barcode identifier.
1 parent 9445295 commit 15a11a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/inc/2fa/secret.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
$tfa = new TwoFactorAuth('Hestia Control Panel');
99

1010
$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)
11-
$qrcode = $tfa->getQRCodeImageAsDataUri('Hestia Control Panel', $secret);
11+
$qrcode = $tfa->getQRCodeImageAsDataUri(gethostname(), $secret);
1212

1313
echo $secret . "-" . $qrcode;

0 commit comments

Comments
 (0)