def default_user_authentication_rule(user):
    return (True if ((user is not None) and user.is_active) else False)
def default_user_authentication_rule(user):
    return (True if ((user is not None) and user.is_active) else False)