mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +00:00
better names for totp
This commit is contained in:
parent
a2ceed6f87
commit
eae779832f
|
@ -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'));
|
||||
|
|
Loading…
Reference in New Issue
Block a user