You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Authenticator/Passport/Badge/UserBadge.php
+15-7Lines changed: 15 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -54,14 +54,8 @@ public function __construct(
54
54
private ?array$attributes = null,
55
55
?\Closure$identifierNormalizer = null,
56
56
) {
57
-
if ('' === $userIdentifier) {
58
-
trigger_deprecation('symfony/security-http', '7.2', 'Using an empty string as user identifier is deprecated and will throw an exception in Symfony 8.0.');
59
-
// throw new BadCredentialsException('Empty user identifier.');
60
-
}
57
+
$this->validateUserIdentifier($userIdentifier);
61
58
62
-
if (\strlen($userIdentifier) > self::MAX_USERNAME_LENGTH) {
63
-
thrownewBadCredentialsException('Username too long.');
trigger_deprecation('symfony/security-http', '7.2', 'Using an empty string as user identifier is deprecated and will throw an exception in Symfony 8.0.');
136
+
// throw new BadCredentialsException('Empty user identifier.');
137
+
}
138
+
139
+
if (\strlen($userIdentifier) > self::MAX_USERNAME_LENGTH) {
140
+
thrownewBadCredentialsException('Username too long.');
$this->expectUserDeprecationMessage('Since symfony/security-http 7.2: Using an empty string as user identifier is deprecated and will throw an exception in Symfony 8.0.');
0 commit comments