public function PasswordInterface::check in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Password/PasswordInterface.php \Drupal\Core\Password\PasswordInterface::check()
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.
2 methods override PasswordInterface::check()
- MigratePassword::check in core/
modules/ user/ src/ MigratePassword.php - Check whether a plain text password matches a hashed password.
- PhpassHashedPassword::check in core/
lib/ Drupal/ Core/ Password/ PhpassHashedPassword.php - Check whether a plain text password matches a hashed password.
File
- core/
lib/ Drupal/ Core/ Password/ PasswordInterface.php, line 42 - Contains \Drupal\Core\Password\PasswordInterface.
Class
- PasswordInterface
- Secure password hashing functions for user authentication.
Namespace
Drupal\Core\PasswordCode
public function check($password, $hash);