diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2016-06-07 22:56:08 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2016-06-07 22:56:08 +0300 |
commit | a6adec7834cb7f5772be431948ad06c4a6c6ef74 (patch) | |
tree | ff14bbb3a9914773b2ce0daa517a9685898dfbb3 /templates | |
parent | 6fdf8cec90feaed39ba2ed30e2b88f43ee8b18d8 (diff) |
show sms transmission errors, show phonenumber used
Diffstat (limited to 'templates')
-rw-r--r-- | templates/challenge.php | 9 | ||||
-rw-r--r-- | templates/error.php | 3 |
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> |