2016-05-11 12:23:25 +03:00
|
|
|
<?php
|
2016-10-28 22:46:28 +03:00
|
|
|
/** @var $l \OCP\IL10N */
|
2016-05-11 12:23:25 +03:00
|
|
|
/** @var $_ array */
|
|
|
|
/* @var $error boolean */
|
|
|
|
$error = $_['error'];
|
2016-11-14 17:39:19 +03:00
|
|
|
/* @var $error_message string */
|
|
|
|
$error_message = $_['error_message'];
|
2016-05-11 12:23:25 +03:00
|
|
|
/* @var $provider OCP\Authentication\TwoFactorAuth\IProvider */
|
|
|
|
$provider = $_['provider'];
|
|
|
|
/* @var $template string */
|
|
|
|
$template = $_['template'];
|
|
|
|
?>
|
|
|
|
|
2016-08-27 00:20:00 +03:00
|
|
|
<div class="warning">
|
2016-08-27 12:33:15 +03:00
|
|
|
<h2 class="two-factor-header"><?php p($provider->getDisplayName()); ?></h2>
|
2016-08-27 00:20:00 +03:00
|
|
|
<?php if ($error): ?>
|
2016-11-14 17:39:19 +03:00
|
|
|
<?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; ?>
|
2016-08-27 00:20:00 +03:00
|
|
|
<?php endif; ?>
|
|
|
|
<?php print_unescaped($template); ?>
|
|
|
|
</div>
|
2016-08-29 20:19:44 +03:00
|
|
|
<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;
|