Check whether a plain text password matches a stored hashed password.
Alternative implementations of this function may use other data in the $account object, for example the uid to look up the hash in a custom table or remote database.
string $password: A plain-text password
Drupal\user\User: A user object with at least the fields from the {users} table.
bolean. TRUE or FALSE.
public function check($password, $account);