diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2016-06-04 14:16:18 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2016-06-04 14:16:18 +0300 |
commit | ed7d8759dbc637e121c732bfeb3cfc2042d818ff (patch) | |
tree | b1c7fc438a4464f85b6cdb1f4e7026556dfbf5e9 /templates | |
parent | b6943ad9d26b7e70b47ed644114a6a4e0b2fa30b (diff) |
first working version
Diffstat (limited to 'templates')
-rw-r--r-- | templates/challenge.php | 8 |
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> |