diff --git a/views/bootstrap/class.Setup2Factor.php b/views/bootstrap/class.Setup2Factor.php index 45e34e4f3..6426d1592 100644 --- a/views/bootstrap/class.Setup2Factor.php +++ b/views/bootstrap/class.Setup2Factor.php @@ -21,6 +21,9 @@ */ require "vendor/autoload.php"; +use RobThree\Auth\TwoFactorAuth; +use RobThree\Auth\Providers\Qr\BaconQrCodeProvider; + /** * Class which outputs the html page for ForcePasswordChange view * @@ -81,7 +84,8 @@ $(document).ready( function() { $this->columnStart(6); $this->contentHeading(getMLText('2_fact_auth_new_secret')); - $tfa = new \RobThree\Auth\TwoFactorAuth('SeedDMS: '.$sitename); +// $tfa = new \RobThree\Auth\TwoFactorAuth('SeedDMS: '.$sitename); + $tfa = new TwoFactorAuth(new BaconQrCodeProvider()); $oldsecret = $user->getSecret(); $secret = $tfa->createSecret(); ?> @@ -99,17 +103,17 @@ $(document).ready( function() { ) ); $this->formSubmit(getMLText('submit_2_fact_auth')); + echo '