def METHOD_NAME(event):
    """
    let us know that the user was logged in here successfully
    """
    request = getRequest()
    if request is None:
        return
    if not ICastleLayer.providedBy(request):
        return
    request.environ[LOGGED_IN_MARKER_KEY] = 'yes'
    # do not even allow user to login if the account has been
    # disabled
    try:
        if api.user.get_roles(user=event.object) == ['Authenticated']:
            site = getSite()
            raise Redirect('%s/@@disabled-user' % site.absolute_url())
    except api.exc.UserNotFoundError:
        log.warn('could not find logged in user {}'.format(repr(event.object)))