Render QR code for TwoFactor authentication without Google Chart API
This commit is contained in:
@@ -2,17 +2,14 @@
|
||||
<h2><?= t('Two factor authentication') ?></h2>
|
||||
</div>
|
||||
|
||||
<?php if (! empty($secret) || ! empty($qrcode_url) || ! empty($key_url)): ?>
|
||||
<?php if (! empty($secret) || ! empty($key_url)): ?>
|
||||
<div class="panel">
|
||||
<?php if (! empty($secret)): ?>
|
||||
<p><?= t('Secret key: ') ?><strong><?= $this->text->e($secret) ?></strong></p>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if (! empty($qrcode_url)): ?>
|
||||
<p><br><img src="<?= $qrcode_url ?>"/><br><br></p>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if (! empty($key_url)): ?>
|
||||
<br><img src="<?= $this->url->href('TwoFactorController', 'qrcode') ?>"><br>
|
||||
<p><?= t('This QR code contains the key URI: ') ?><a href="<?= $this->text->e($key_url) ?>"><?= $this->text->e($key_url) ?></a></p>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user