diff options
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> |