twofactorshowchallenge.php 646 B

12345678910111213141516171819
  1. <?php
  2. /** @var $l OC_L10N */
  3. /** @var $_ array */
  4. /* @var $error boolean */
  5. $error = $_['error'];
  6. /* @var $provider OCP\Authentication\TwoFactorAuth\IProvider */
  7. $provider = $_['provider'];
  8. /* @var $template string */
  9. $template = $_['template'];
  10. ?>
  11. <div class="warning">
  12. <h2 class="two-factor-header"><?php p($provider->getDisplayName()); ?></h2>
  13. <?php if ($error): ?>
  14. <p><strong><?php p($l->t('Error while validating your second factor')); ?></strong></p>
  15. <?php endif; ?>
  16. <?php print_unescaped($template); ?>
  17. </div>
  18. <a class="two-factor-cancel" <?php print_unescaped($_['logout_attribute']); ?>><?php p($l->t('Cancel log in')) ?></a>