summaryrefslogtreecommitdiffstats
path: root/core/templates/twofactorshowchallenge.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/templates/twofactorshowchallenge.php')
-rw-r--r--core/templates/twofactorshowchallenge.php26
1 files changed, 14 insertions, 12 deletions
diff --git a/core/templates/twofactorshowchallenge.php b/core/templates/twofactorshowchallenge.php
index 4f3741b5dfe..ec760ead7c7 100644
--- a/core/templates/twofactorshowchallenge.php
+++ b/core/templates/twofactorshowchallenge.php
@@ -12,22 +12,24 @@ $template = $_['template'];
?>
<div class="warning">
- <h2 class="two-factor-header"><?php p($provider->getDisplayName()); ?></h2>
- <?php if ($error): ?>
+ <h2 class="two-factor-header"><?php p($provider->getDisplayName()); ?></h2>
+ <?php if ($error): ?>
<?php if($error_message): ?>
<p><strong><?php p($error_message); ?></strong></p>
<?php else: ?>
<p><strong><?php p($l->t('Error while validating your second factor')); ?></strong></p>
<?php endif; ?>
+ <?php endif; ?>
+ <?php print_unescaped($template); ?>
+ <p class="two-factor-link">
+ <a class="button" <?php print_unescaped($_['logout_attribute']); ?>><?php p($l->t('Cancel log in')) ?></a>
+ <?php if (!is_null($_['backupProvider'])): ?>
+ <a class="button" href="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.TwoFactorChallenge.showChallenge',
+ [
+ 'challengeProviderId' => $_['backupProvider']->getId(),
+ 'redirect_url' => $_['redirect_url'],
+ ]
+ )) ?>"><?php p($l->t('Use backup code')) ?></a>
<?php endif; ?>
- <?php print_unescaped($template); ?>
+ </p>
</div>
-<a class="two-factor-link" <?php print_unescaped($_['logout_attribute']); ?>><?php p($l->t('Cancel log in')) ?></a>
-<?php if (!is_null($_['backupProvider'])): ?>
-<a class="two-factor-link" href="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.TwoFactorChallenge.showChallenge',
- [
- 'challengeProviderId' => $_['backupProvider']->getId(),
- 'redirect_url' => $_['redirect_url'],
- ]
- )) ?>"><?php p($l->t('Use backup code')) ?></a>
-<?php endif;