def logout(identity):
    """Logout the user.
    :returns: a dict with the operation result
    """
    if not identity:
        return {'no-data': ''}

    return {'success': 'Successfully logged out.'}