use form fields for better formating of page

This commit is contained in:
Uwe Steinmann 2025-07-25 08:36:21 +02:00
parent f12a23e1d6
commit d97b8b0316

View File

@ -102,10 +102,11 @@ $(document).ready( function() {
'required'=>true 'required'=>true
) )
); );
$this->formField(
getMLText('2_fact_auth_qrcode'),
'<img src="'.$tfa->getQRCodeImageAsDataUri($user->getLogin(), $secret).'">'
);
$this->formSubmit(getMLText('submit_2_fact_auth')); $this->formSubmit(getMLText('submit_2_fact_auth'));
echo '<div class="control-group"><label class="control-label"></label><div class="controls">';
echo '<img src="'.$tfa->getQRCodeImageAsDataUri($user->getLogin(), $secret).'">';
echo '</div></div>';
?> ?>
</form> </form>
<?php <?php
@ -113,8 +114,14 @@ $(document).ready( function() {
$this->columnEnd(); $this->columnEnd();
$this->columnStart(6); $this->columnStart(6);
$this->contentHeading(getMLText('2_fact_auth_current_secret')); $this->contentHeading(getMLText('2_fact_auth_current_secret'));
echo '<div>'.htmlspecialchars($oldsecret).'</div>'; $this->formField(
echo '<div><img src="'.$tfa->getQRCodeImageAsDataUri($sitename, $oldsecret).'"></div>'; getMLText('2_fact_auth_secret'),
htmlspecialchars($oldsecret)
);
$this->formField(
getMLText('2_fact_auth_qrcode'),
'<img src="'.$tfa->getQRCodeImageAsDataUri($user->getLogin(), $secret).'">'
);
?> ?>
<?php <?php
} }