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

github.com/nextcloud/twofactor_gateway.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-07 22:56:08 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2016-06-07 22:56:08 +0300
commita6adec7834cb7f5772be431948ad06c4a6c6ef74 (patch)
treeff14bbb3a9914773b2ce0daa517a9685898dfbb3 /templates
parent6fdf8cec90feaed39ba2ed30e2b88f43ee8b18d8 (diff)
show sms transmission errors, show phonenumber used
Diffstat (limited to 'templates')
-rw-r--r--templates/challenge.php9
-rw-r--r--templates/error.php3
2 files changed, 11 insertions, 1 deletions
diff --git a/templates/challenge.php b/templates/challenge.php
index 4ba9183..767318e 100644
--- a/templates/challenge.php
+++ b/templates/challenge.php
@@ -1,4 +1,11 @@
-<p>TOTP: <?php p($_['secret']); ?></p>
+
+<fieldset class="warning">
+ <span><?php p($l->t('An access code has been sent to') . ' ' . $_['phone']); ?></span>
+</fieldset>
+
+<?php if (isset($_['secret'])): ?>
+ <p>TOTP: <?php p($_['secret']); ?></p>
+<?php endif; ?>
<form method="POST">
<input type="hidden" name="redirect_url" value="<?php p($_['redirect_url']); ?>">
diff --git a/templates/error.php b/templates/error.php
new file mode 100644
index 0000000..a83ef08
--- /dev/null
+++ b/templates/error.php
@@ -0,0 +1,3 @@
+<fieldset class="warning">
+ <?php p($l->t('Error while sending the Message. Please try again later or contact the administrator.')); ?>
+</fieldset>