Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 254b8cd

Browse files
committed
Add a normalization step for the user-identifier in firewalls
1 parent 5c60a89 commit 254b8cd

File tree

1 file changed

+2
-1
lines changed
  • src/Symfony/Component/Security/Http/Tests/Authenticator/Passport/Badge

1 file changed

+2
-1
lines changed

src/Symfony/Component/Security/Http/Tests/Authenticator/Passport/Badge/UserBadgeTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use Symfony\Component\Security\Http\Authenticator\Passport\Badge\UserBadge;
1818
use Symfony\Component\String\Slugger\AsciiSlugger;
1919
use Symfony\Component\String\UnicodeString;
20+
2021
use function Symfony\Component\String\u;
2122

2223
class UserBadgeTest extends TestCase
@@ -61,7 +62,7 @@ public static function provideUserIdentifierNormalizationData(): iterable
6162
$asciiWithPrefix = static fn (string $identifier) => u($slugger->slug($identifier))->ascii()->lower()->prepend('USERID--')->toString();
6263
yield 'Username with prefix' => ['John Doe 1', 'USERID--john-doe-1', $asciiWithPrefix];
6364

64-
if (!extension_loaded('intl')) {
65+
if (!\extension_loaded('intl')) {
6566
return;
6667
}
6768
$upperAndAscii = fn (string $identifier) => u($identifier)->ascii()->upper()->toString();

0 commit comments

Comments
 (0)