Completed
Push — master ( 672e4f...e22914 )
by Maxence
21:09 queued 14s
created
core/templates/403.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,11 @@
 block discarded – undo
20 20
 	<p class="hint">
21 21
 		<?php if (isset($_['message'])): ?>
22 22
 			<?php p($_['message']); ?>
23
-		<?php else: ?>
24
-			<?php p($l->t('You are not allowed to access this page.')); ?>
23
+		<?php else {
24
+    : ?>
25
+			<?php p($l->t('You are not allowed to access this page.'));
26
+}
27
+?>
25 28
 		<?php endif; ?>
26 29
 	</p>
27 30
 	<p><a class="button primary" href="<?php p(\OCP\Server::get(\OCP\IURLGenerator::class)->linkTo('', 'index.php')) ?>">
Please login to merge, or discard this patch.
core/templates/twofactorselectchallenge.php 1 patch
Braces   +13 added lines, -5 removed lines patch added patch discarded remove patch
@@ -32,11 +32,15 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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>
Please login to merge, or discard this patch.