Cartalyst\Sentinel\Hashing\HasherInterface::check PHP Method

check() public method

Checks the string against the hashed value.
public check ( string $value, string $hashedValue ) : boolean
$value string
$hashedValue string
return boolean
    public function check($value, $hashedValue);

Usage Example

Exemplo n.º 1
0
 /**
  * {@inheritDoc}
  */
 public function validateCredentials(UserInterface $user, array $credentials)
 {
     return $this->hasher->check($credentials['password'], $user->password);
 }
HasherInterface