Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit587c360

Browse files
authored
Refactor password hashing method in security.rst
Method "hashPassword" does not exist in Symfony\Component\PasswordHasher\PasswordHasherInterface in Symfony 7.3
1 parent2e37fd5 commit587c360

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

‎security.rst‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -426,10 +426,7 @@ the database::
426426
$plaintextPassword = ...;
427427

428428
// hash the password (based on the security.yaml config for the $user class)
429-
$hashedPassword = $passwordHasher->hashPassword(
430-
$user,
431-
$plaintextPassword
432-
);
429+
$hashedPassword = $this->passwordHasher->hash($plaintextPassword);
433430
$user->setPassword($hashedPassword);
434431

435432
// ...

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp