better names for totp

This commit is contained in:
Uwe Steinmann 2023-08-15 08:06:46 +02:00
parent a2ceed6f87
commit eae779832f

View File

@ -80,7 +80,7 @@ $(document).ready( function() {
$this->rowStart();
$this->contentContainerStart('span6');
$tfa = new \RobThree\Auth\TwoFactorAuth('SeedDMS');
$tfa = new \RobThree\Auth\TwoFactorAuth('SeedDMS: '.$sitename);
$oldsecret = $user->getSecret();
$secret = $tfa->createSecret();
?>
@ -89,7 +89,7 @@ $(document).ready( function() {
<input id="secret" class="secret" type="text" name="secret" size="30" value="<?php echo $secret; ?>"><br />
</div></div>
<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>
<?php
$this->formSubmit(getMLText('submit_2_fact_auth'));