def authenticate(self, auth, stored_password):
        if auth:
            username = auth.username
            client_password = auth.password
        else:
            username = ""
            client_password = ""
        if self.verify_password_callback:
            return self.verify_password_callback(username, client_password)
        if not auth:
            return False
        if self.hash_password_callback:
            try:
                client_password = self.hash_password_callback(client_password)
            except __HOLE__:
                client_password = self.hash_password_callback(username,
                                                              client_password)
        return client_password == stored_password
dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/flask_httpauth.py/HTTPBasicAuth.authenticate