PhpassHashedPassword::check

public function PhpassHashedPassword::check

public PhpassHashedPassword::check($password, $hash)

Check whether a plain text password matches a hashed password.

Parameters

string $password: A plain-text password

string $hash: A hashed password.

Return value

bool TRUE if the password is valid, FALSE if not.

Overrides PasswordInterface::check

File

core/lib/Drupal/Core/Password/PhpassHashedPassword.php登录查看完整内容