mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-11-27 18:10:42 +00:00
use form fields for better formating of page
This commit is contained in:
parent
f12a23e1d6
commit
d97b8b0316
|
|
@ -102,10 +102,11 @@ $(document).ready( function() {
|
|||
'required'=>true
|
||||
)
|
||||
);
|
||||
$this->formField(
|
||||
getMLText('2_fact_auth_qrcode'),
|
||||
'<img src="'.$tfa->getQRCodeImageAsDataUri($user->getLogin(), $secret).'">'
|
||||
);
|
||||
$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>
|
||||
<?php
|
||||
|
|
@ -113,8 +114,14 @@ $(document).ready( function() {
|
|||
$this->columnEnd();
|
||||
$this->columnStart(6);
|
||||
$this->contentHeading(getMLText('2_fact_auth_current_secret'));
|
||||
echo '<div>'.htmlspecialchars($oldsecret).'</div>';
|
||||
echo '<div><img src="'.$tfa->getQRCodeImageAsDataUri($sitename, $oldsecret).'"></div>';
|
||||
$this->formField(
|
||||
getMLText('2_fact_auth_secret'),
|
||||
htmlspecialchars($oldsecret)
|
||||
);
|
||||
$this->formField(
|
||||
getMLText('2_fact_auth_qrcode'),
|
||||
'<img src="'.$tfa->getQRCodeImageAsDataUri($user->getLogin(), $secret).'">'
|
||||
);
|
||||
?>
|
||||
<?php
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user