Skip to content

Commit e4dd60a

Browse files
committed
minor symfony#11215 [Security] Add missing dot at the end of an exception message (rybakit)
This PR was merged into the 2.6-dev branch. Discussion ---------- [Security] Add missing dot at the end of an exception message | Q | A | ------------- | --- | Fixed tickets | - | License | MIT Commits ------- 8e1f978 Add missing dot at the end of an exception message
2 parents 3666c05 + 8e1f978 commit e4dd60a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Security/Core/Authentication/Provider/UserAuthenticationProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function authenticate(TokenInterface $token)
7070
$user = $this->retrieveUser($username, $token);
7171
} catch (UsernameNotFoundException $notFound) {
7272
if ($this->hideUserNotFoundExceptions) {
73-
throw new BadCredentialsException('Bad credentials', 0, $notFound);
73+
throw new BadCredentialsException('Bad credentials.', 0, $notFound);
7474
}
7575
$notFound->setUsername($username);
7676

@@ -87,7 +87,7 @@ public function authenticate(TokenInterface $token)
8787
$this->userChecker->checkPostAuth($user);
8888
} catch (BadCredentialsException $e) {
8989
if ($this->hideUserNotFoundExceptions) {
90-
throw new BadCredentialsException('Bad credentials', 0, $e);
90+
throw new BadCredentialsException('Bad credentials.', 0, $e);
9191
}
9292

9393
throw $e;

0 commit comments

Comments
 (0)