nextcloud/core/templates/twofactorshowchallenge.php

21 lines
680 B
PHP
Raw Normal View History

2016-05-11 12:23:25 +03:00
<?php
/** @var $l OC_L10N */
/** @var $_ array */
/* @var $error boolean */
$error = $_['error'];
/* @var $provider OCP\Authentication\TwoFactorAuth\IProvider */
$provider = $_['provider'];
/* @var $template string */
$template = $_['template'];
?>
2016-08-27 00:20:00 +03:00
<div class="warning">
<h2><?php p($provider->getDisplayName()); ?></h2>
2016-05-11 12:23:25 +03:00
<p><?php p($l->t('Please authenticate using the selected factor.')) ?></p>
2016-08-27 00:20:00 +03:00
<?php if ($error): ?>
<p><?php p($l->t('An error occured while verifying the token')); ?></p>
<?php endif; ?>
<?php print_unescaped($template); ?>
</div>
2016-06-07 18:53:00 +03:00
<a class="two-factor-cancel" <?php print_unescaped($_['logout_attribute']); ?>><?php p($l->t('Cancel login')) ?></a>