2016-05-11 12:23:25 +03:00
|
|
|
<?php
|
2020-08-17 18:16:50 +03:00
|
|
|
/** @var \OCP\IL10N $l */
|
|
|
|
/** @var array $_*/
|
|
|
|
/** @var boolean $error */
|
2016-05-11 12:23:25 +03:00
|
|
|
$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'];
|
|
|
|
?>
|
|
|
|
|
2020-01-14 21:37:54 +03:00
|
|
|
<div class="body-login-container update two-factor">
|
2016-12-12 12:20:35 +03:00
|
|
|
<h2 class="two-factor-header"><?php p($provider->getDisplayName()); ?></h2>
|
|
|
|
<?php if ($error): ?>
|
2020-04-10 15:19:56 +03:00
|
|
|
<?php if ($error_message): ?>
|
2016-11-14 17:39:19 +03:00
|
|
|
<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-12-12 12:20:35 +03:00
|
|
|
<?php endif; ?>
|
|
|
|
<?php print_unescaped($template); ?>
|
2018-10-03 23:16:54 +03:00
|
|
|
<?php if (!is_null($_['backupProvider'])): ?>
|
|
|
|
<p>
|
|
|
|
<a class="two-factor-secondary" 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>
|
|
|
|
</p>
|
|
|
|
<?php endif; ?>
|
|
|
|
<p><a class="two-factor-secondary" href="<?php print_unescaped($_['logout_url']); ?>">
|
2020-01-06 16:44:31 +03:00
|
|
|
<?php p($l->t('Cancel login')) ?>
|
2018-10-03 23:16:54 +03:00
|
|
|
</a></p>
|
2016-08-27 00:20:00 +03:00
|
|
|
</div>
|