Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions security/passwords.rst
Original file line number Diff line number Diff line change
Expand Up @@ -518,13 +518,13 @@ migration by returning ``true`` in the ``needsRehash()`` method::
namespace App\Security;

// ...
use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface;
use Symfony\Component\PasswordHasher\PasswordHasherInterface;

class CustomPasswordHasher implements UserPasswordHasherInterface
class CustomPasswordHasher implements PasswordHasherInterface
{
// ...

public function needsRehash(string $hashed): bool
public function needsRehash(string $hashedPassword): bool
{
// check whether the current password is hashed using an outdated hasher
$hashIsOutdated = ...;
Expand Down