You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

twofactorselectchallenge.php 1.2KB

123456789101112131415161718192021222324252627282930
  1. <div class="warning">
  2. <h2 class="two-factor-header"><?php p($l->t('Two-factor authentication')) ?></h2>
  3. <p><?php p($l->t('Enhanced security is enabled for your account. Please authenticate using a second factor.')) ?></p>
  4. <p>
  5. <ul>
  6. <?php foreach ($_['providers'] as $provider): ?>
  7. <li>
  8. <a class="button two-factor-provider"
  9. href="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.TwoFactorChallenge.showChallenge',
  10. [
  11. 'challengeProviderId' => $provider->getId(),
  12. 'redirect_url' => $_['redirect_url'],
  13. ]
  14. )) ?>">
  15. <?php p($provider->getDescription()) ?>
  16. </a>
  17. </li>
  18. <?php endforeach; ?>
  19. </ul>
  20. </p>
  21. </div>
  22. <a class="two-factor-link" <?php print_unescaped($_['logout_attribute']); ?>><?php p($l->t('Cancel log in')) ?></a>
  23. <?php if (!is_null($_['backupProvider'])): ?>
  24. <a class="two-factor-link" href="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.TwoFactorChallenge.showChallenge',
  25. [
  26. 'challengeProviderId' => $_['backupProvider']->getId(),
  27. 'redirect_url' => $_['redirect_url'],
  28. ]
  29. )) ?>"><?php p($l->t('Use backup code')) ?></a>
  30. <?php endif;