프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$validationCallback | Legacy password validation via callback |
메소드 | 설명 | |
---|---|---|
__construct ( JeremyKendall\Password\PasswordValidatorInterface $validator, callable $validationCallback ) | Public constructor | |
isValid ( $password, $passwordHash, $legacySalt = null, $identity = null ) | {@inheritDoc} |
메소드 | 설명 | |
---|---|---|
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 ) |