[Web] Activate bacon-qr-code in TwoFactorAuth lib

This commit is contained in:
Paul Sütterlin 2025-07-26 17:13:11 +02:00
parent dff9af6a95
commit 36ea8e7cbe
No known key found for this signature in database
GPG key ID: CA87DA0C05A9CFC6

View file

@ -47,7 +47,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/lib/CSSminifierExtended.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/lib/array_merge_real.php';
// T/HOTP API
$qrprovider = new RobThree\Auth\Providers\Qr\QRServerProvider();
$qrprovider = new RobThree\Auth\Providers\Qr\BaconQrCodeProvider();
$tfa = new RobThree\Auth\TwoFactorAuth($OTP_LABEL, 6, 30, 'sha1', $qrprovider);
// FIDO2