Merge branch 'seeddms-5.1.x' into seeddms-6.0.x

This commit is contained in:
Uwe Steinmann 2023-08-15 08:07:26 +02:00
commit bd9c9e8e3b

View File

@ -81,7 +81,7 @@ $(document).ready( function() {
$this->columnStart(6); $this->columnStart(6);
$this->contentHeading(getMLText('2_fact_auth_new_secret')); $this->contentHeading(getMLText('2_fact_auth_new_secret'));
$tfa = new \RobThree\Auth\TwoFactorAuth('SeedDMS'); $tfa = new \RobThree\Auth\TwoFactorAuth('SeedDMS: '.$sitename);
$oldsecret = $user->getSecret(); $oldsecret = $user->getSecret();
$secret = $tfa->createSecret(); $secret = $tfa->createSecret();
?> ?>
@ -101,7 +101,7 @@ $(document).ready( function() {
$this->formSubmit(getMLText('submit_2_fact_auth')); $this->formSubmit(getMLText('submit_2_fact_auth'));
?> ?>
<div class="control-group"><label class="control-label"></label><div class="controls"> <div class="control-group"><label class="control-label"></label><div class="controls">
<img src="<?php echo $tfa->getQRCodeImageAsDataUri($sitename, $secret); ?>"> <img src="<?php echo $tfa->getQRCodeImageAsDataUri($user->getLogin(), $secret); ?>">
</div></div> </div></div>
</form> </form>
<?php <?php