mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-11-28 18:40:39 +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
|
'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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user