@@ -25,11 +25,11 @@ |
||
25 | 25 | <a class="button" <?php print_unescaped($_['logout_attribute']); ?>><?php p($l->t('Cancel log in')) ?></a> |
26 | 26 | <?php if (!is_null($_['backupProvider'])): ?> |
27 | 27 | <a class="button" href="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.TwoFactorChallenge.showChallenge', |
28 | - [ |
|
29 | - 'challengeProviderId' => $_['backupProvider']->getId(), |
|
30 | - 'redirect_url' => $_['redirect_url'], |
|
31 | - ] |
|
32 | - )) ?>"><?php p($l->t('Use backup code')) ?></a> |
|
28 | + [ |
|
29 | + 'challengeProviderId' => $_['backupProvider']->getId(), |
|
30 | + 'redirect_url' => $_['redirect_url'], |
|
31 | + ] |
|
32 | + )) ?>"><?php p($l->t('Use backup code')) ?></a> |
|
33 | 33 | <?php endif; ?> |
34 | 34 | </p> |
35 | 35 | </div> |
@@ -14,7 +14,7 @@ |
||
14 | 14 | <div class="warning"> |
15 | 15 | <h2 class="two-factor-header"><?php p($provider->getDisplayName()); ?></h2> |
16 | 16 | <?php if ($error): ?> |
17 | - <?php if($error_message): ?> |
|
17 | + <?php if ($error_message): ?> |
|
18 | 18 | <p><strong><?php p($error_message); ?></strong></p> |
19 | 19 | <?php else: ?> |
20 | 20 | <p><strong><?php p($l->t('Error while validating your second factor')); ?></strong></p> |
@@ -16,8 +16,11 @@ |
||
16 | 16 | <?php if ($error): ?> |
17 | 17 | <?php if($error_message): ?> |
18 | 18 | <p><strong><?php p($error_message); ?></strong></p> |
19 | - <?php else: ?> |
|
20 | - <p><strong><?php p($l->t('Error while validating your second factor')); ?></strong></p> |
|
19 | + <?php else { |
|
20 | + : ?> |
|
21 | + <p><strong><?php p($l->t('Error while validating your second factor')); |
|
22 | +} |
|
23 | +?></strong></p> |
|
21 | 24 | <?php endif; ?> |
22 | 25 | <?php endif; ?> |
23 | 26 | <?php print_unescaped($template); ?> |
@@ -7,11 +7,11 @@ discard block |
||
7 | 7 | <li> |
8 | 8 | <a class="button two-factor-provider" |
9 | 9 | href="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.TwoFactorChallenge.showChallenge', |
10 | - [ |
|
11 | - 'challengeProviderId' => $provider->getId(), |
|
12 | - 'redirect_url' => $_['redirect_url'], |
|
13 | - ] |
|
14 | - )) ?>"> |
|
10 | + [ |
|
11 | + 'challengeProviderId' => $provider->getId(), |
|
12 | + 'redirect_url' => $_['redirect_url'], |
|
13 | + ] |
|
14 | + )) ?>"> |
|
15 | 15 | <?php p($provider->getDescription()) ?> |
16 | 16 | </a> |
17 | 17 | </li> |
@@ -22,11 +22,11 @@ discard block |
||
22 | 22 | <a class="button" <?php print_unescaped($_['logout_attribute']); ?>><?php p($l->t('Cancel log in')) ?></a> |
23 | 23 | <?php if (!is_null($_['backupProvider'])): ?> |
24 | 24 | <a class="button" 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> |
|
25 | + [ |
|
26 | + 'challengeProviderId' => $_['backupProvider']->getId(), |
|
27 | + 'redirect_url' => $_['redirect_url'], |
|
28 | + ] |
|
29 | + )) ?>"><?php p($l->t('Use backup code')) ?></a> |
|
30 | 30 | <?php endif; ?> |
31 | 31 | </p> |
32 | 32 | </div> |