def validate_hash(self, password, stored_hash):
        return bcrypt.hashpw(password, stored_hash) == stored_hash
Validates that self.hash(password) == stored_hash.
dataset/ETHPy150Open matrix-org/synapse/synapse/handlers/auth.py/AuthHandler.validate_hash