summaryrefslogtreecommitdiff
path: root/app/Template
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-03-09 21:24:04 -0500
committerFrederic Guillot <fred@kanboard.net>2017-03-09 21:24:04 -0500
commit6d814566fba8ac45b5cba6993e7b98223b259256 (patch)
tree199e1c456d721c4ca95b95092fbf619497ef073e /app/Template
parentcbb4d0061e698376d4fbd9a6df95ac14d0733aed (diff)
Render QR code for TwoFactor authentication without Google Chart API
Diffstat (limited to 'app/Template')
-rw-r--r--app/Template/twofactor/show.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/app/Template/twofactor/show.php b/app/Template/twofactor/show.php
index a5bdeccb..412077b9 100644
--- a/app/Template/twofactor/show.php
+++ b/app/Template/twofactor/show.php
@@ -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>