Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/twofactor_totp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2016-06-04 14:16:18 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2016-06-04 14:16:18 +0300
commited7d8759dbc637e121c732bfeb3cfc2042d818ff (patch)
treeb1c7fc438a4464f85b6cdb1f4e7026556dfbf5e9 /templates
parentb6943ad9d26b7e70b47ed644114a6a4e0b2fa30b (diff)
first working version
Diffstat (limited to 'templates')
-rw-r--r--templates/challenge.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/challenge.php b/templates/challenge.php
index 59fdf73..ca462e9 100644
--- a/templates/challenge.php
+++ b/templates/challenge.php
@@ -1,6 +1,8 @@
-<p>TOTP: <?php p($_['secret']); ?></p>
+<?php if (isset($_['qr'])): ?>
+<a href="<?php echo $_['qr']; ?>" target="_blank">Scan QR Code</a>
+<?php endif; ?>
<form method="POST">
- <input type="text" name="challenge" required="required">
- <input type="submit" class="button" value="Verify">
+ <input type="text" name="challenge" required="required">
+ <input type="submit" class="button" value="Verify">
</form>