| @@ -32,11 +32,15 @@ discard block | ||
| 32 | 32 |  					<?php p($l->t('Set up two-factor authentication')) ?> | 
| 33 | 33 | </a> | 
| 34 | 34 | <?php } ?> | 
| 35 | - <?php else: ?> | |
| 35 | +		<?php else { | |
| 36 | + : ?> | |
| 36 | 37 |  			<strong><?php p($l->t('Two-factor authentication is enforced but has not been configured on your account. Use one of your backup codes to log in or contact your admin for assistance.')) ?></strong> | 
| 37 | - <?php endif; ?> | |
| 38 | + <?php endif; | |
| 39 | +} | |
| 40 | +?> | |
| 38 | 41 | </p> | 
| 39 | - <?php else: ?> | |
| 42 | +	<?php else { | |
| 43 | + : ?> | |
| 40 | 44 | <ul> | 
| 41 | 45 | <?php foreach ($_['providers'] as $provider): ?> | 
| 42 | 46 | <li> | 
| @@ -50,6 +54,7 @@ discard block | ||
| 50 | 54 | <?php | 
| 51 | 55 |  				if ($provider instanceof \OCP\Authentication\TwoFactorAuth\IProvidesIcons) { | 
| 52 | 56 | $icon = $provider->getLightIcon(); | 
| 57 | +} | |
| 53 | 58 |  				} else { | 
| 54 | 59 |  					$icon = image_path('core', 'actions/password-white.svg'); | 
| 55 | 60 | } | 
| @@ -66,7 +71,8 @@ discard block | ||
| 66 | 71 | <?php endif ?> | 
| 67 | 72 | <?php if (!is_null($_['backupProvider'])): ?> | 
| 68 | 73 | <p> | 
| 69 | -		<a class="<?php if ($noProviders): ?>button primary two-factor-primary<?php else: ?>two-factor-secondary<?php endif ?>" href="<?php p(\OCP\Server::get(\OCP\IURLGenerator::class)->linkToRoute('core.TwoFactorChallenge.showChallenge', | |
| 74 | +		<a class="<?php if ($noProviders): ?>button primary two-factor-primary<?php else { | |
| 75 | +    : ?>two-factor-secondary<?php endif ?>" href="<?php p(\OCP\Server::get(\OCP\IURLGenerator::class)->linkToRoute('core.TwoFactorChallenge.showChallenge', | |
| 70 | 76 | [ | 
| 71 | 77 | 'challengeProviderId' => $_['backupProvider']->getId(), | 
| 72 | 78 | 'redirect_url' => $_['redirect_url'], | 
| @@ -75,7 +81,9 @@ discard block | ||
| 75 | 81 |  			<?php p($l->t('Use backup code')) ?> | 
| 76 | 82 | </a> | 
| 77 | 83 | </p> | 
| 78 | - <?php endif; ?> | |
| 84 | + <?php endif; | |
| 85 | +} | |
| 86 | +?> | |
| 79 | 87 | <p><a id="cancel-login" class="two-factor-secondary" href="<?php print_unescaped($_['logout_url']); ?>"> | 
| 80 | 88 |  		<?php p($l->t('Cancel login')) ?> | 
| 81 | 89 | </a></p> |