def catch_email_change_failed_signal(sender, request, enable_logging=False, **kwargs): castle = Castle() castle.log_event(request, castle.EMAIL_CHANGE_FAILED, enable_logging=enable_logging)
def catch_registration_success_signal(sender, request, enable_logging=False, **kwargs): castle = Castle() castle.log_event(request, castle.REGISTRATION_SUCCEEDED, enable_logging=enable_logging)
def catch_registration_failed_signal(sender, request, enable_logging=False, **kwargs): castle = Castle() castle.log_event(request, castle.REGISTRATION_FAILED, enable_logging=enable_logging)
def catch_login_ratelimited_signal(sender, request, enable_logging=False, **kwargs): castle = Castle() castle.log_event(request, castle.LOGIN_RATELIMITED, enable_logging=enable_logging)
def catch_challenge_failed_signal(sender, request, enable_logging=False, **kwargs): castle = Castle() castle.log_event(request, castle.CHALLENGE_FAILED, enable_logging=enable_logging)
def catch_challenge_success_signal(sender, request, enable_logging=False, **kwargs): castle = Castle() castle.log_event(request, castle.CHALLENGE_SUCCEEDED, enable_logging=enable_logging)
def catch_password_change_success_signal(sender, request, enable_logging=False, **kwargs): castle = Castle() castle.log_event(request, castle.PASSWORD_CHANGE_SUCCEEDED, enable_logging=enable_logging)
def catch_password_change_failed_signal(sender, request, enable_logging=False, **kwargs): castle = Castle() castle.log_event(request, castle.PASSWORD_CHANGE_FAILED, enable_logging=enable_logging)
def catch_password_reset_requested_signal(sender, request, enable_logging=False, **kwargs): castle = Castle() castle.log_event(request, castle.PASSWORD_RESET_REQUESTED, enable_logging=enable_logging)
def catch_email_change_success_signal(sender, request, enable_logging=False, **kwargs): castle = Castle() castle.log_event(request, castle.EMAIL_CHANGE_SUCCEEDED, enable_logging=enable_logging)
def catch_login_signal(sender, request, enable_logging=False, **kwargs): castle = Castle() castle.log_event(request, castle.LOGIN_SUCCESS, enable_logging=enable_logging)
def catch_loginfail_signal(sender, credentials=None, enable_logging=False, **kwargs): castle = Castle() castle.log_login_fail(credentials)
def catch_logout_signal(sender, request, enable_logging=False, **kwargs): castle = Castle() castle.log_event(request, castle.LOGOUT_SUCCEEDED, enable_logging=enable_logging)