Property | Type | Description | |
---|---|---|---|
$validationCallback | Legacy password validation via callback |
Method | Description | |
---|---|---|
__construct ( JeremyKendall\Password\PasswordValidatorInterface $validator, callable $validationCallback ) | Public constructor | |
isValid ( $password, $passwordHash, $legacySalt = null, $identity = null ) | {@inheritDoc} |
Method | Description | |
---|---|---|
createHashWhichWillForceRehashInValidator ( string $password ) : string | This method returns an upgraded password, one that is hashed by the password_hash method in such a way that it forces the PasswordValidator to rehash the password. This results in PasswordValidator::isValid() returning a Result::$code of Result::SUCCESS_PASSWORD_REHASHED, notifying the StorageDecorator or custom application code that the returned password hash should be persisted. |
public __construct ( JeremyKendall\Password\PasswordValidatorInterface $validator, callable $validationCallback ) | ||
$validator | JeremyKendall\Password\PasswordValidatorInterface | Password validator |
$validationCallback | callable | Callback used to validate legacy password hash |
public isValid ( $password, $passwordHash, $legacySalt = null, $identity = null ) |