Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 94f2951

Browse filesBrowse files
committed
Fix wrong usage in custom authenticator checking if password is invalid
1 parent e13ef43 commit 94f2951
Copy full SHA for 94f2951

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎security/custom_password_authenticator.rst

Copy file name to clipboardExpand all lines: security/custom_password_authenticator.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ the user::
6969
if ('' === ($givenPassword = $token->getCredentials())) {
7070
throw new BadCredentialsException('The given password cannot be empty.');
7171
}
72-
if (!$this->encoder->isPasswordValid($user->getPassword(), $givenPassword, $user->getSalt())) {
72+
if (!$this->encoder->isPasswordValid($user, $givenPassword)) {
7373
throw new BadCredentialsException('The given password is invalid.');
7474
}
7575
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.