diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2018-10-01 11:30:32 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2018-10-01 23:58:54 +0200 |
commit | feb5842a7df71f1c8747446f2ff6293cea2a9e30 (patch) | |
tree | 5910d039cb40f740a2b0db6122195fe40b362af9 /core/templates/twofactorshowchallenge.php | |
parent | 40a3dbf87818d0e8f300feeb31f3babb577ed53d (diff) | |
download | nextcloud-server-feb5842a7df71f1c8747446f2ff6293cea2a9e30.tar.gz nextcloud-server-feb5842a7df71f1c8747446f2ff6293cea2a9e30.zip |
Restructure and redesign two-factor auth provider selection
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/templates/twofactorshowchallenge.php')
-rw-r--r-- | core/templates/twofactorshowchallenge.php | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/core/templates/twofactorshowchallenge.php b/core/templates/twofactorshowchallenge.php index fbfeeb4255a..88ac5505751 100644 --- a/core/templates/twofactorshowchallenge.php +++ b/core/templates/twofactorshowchallenge.php @@ -21,15 +21,27 @@ $template = $_['template']; <?php endif; ?> <?php endif; ?> <?php print_unescaped($template); ?> - <p class="two-factor-link"> - <a class="button" href="<?php print_unescaped($_['logout_url']); ?>"><?php p($l->t('Cancel log in')) ?></a> + <ul> <?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> + <li> + <a class="two-factor-provider two-factor-secondary" href="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.TwoFactorChallenge.showChallenge', + [ + 'challengeProviderId' => $_['backupProvider']->getId(), + 'redirect_url' => $_['redirect_url'], + ] + )) ?>"> + <div> + <p><?php p($l->t('Use backup code')) ?></p> + </div> + </a> + </li> <?php endif; ?> - </p> + <li> + <a class="two-factor-provider two-factor-secondary" href="<?php print_unescaped($_['logout_url']); ?>"> + <div> + <p><?php p($l->t('Cancel log in')) ?></p> + </div> + </a> + </li> + </ul> </div> |