Skip to content

Commit 7525d82

Browse files
author
Gary PEGEOT
committed
Add wider check for existing access control rule
1 parent 5ad63fd commit 7525d82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Security/SecurityConfigUpdater.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function updateForAuthenticator(string $yamlSource, string $firewallName,
9696
$accessControlRules = $newData['security']['access_control'] ?? [];
9797

9898
foreach ($accessControlRules as $rule) {
99-
if ('^/login$' === $rule['path']) {
99+
if (0 === strpos($rule['path'], '^/login')) {
100100
$addAccessControlRule = false;
101101
break;
102102
}

0 commit comments

Comments
 (0)