예제 #1
0
def catch_challenge_success_signal(sender,
                                   request,
                                   enable_logging=False,
                                   **kwargs):
    castle = Castle()
    castle.log_event(request,
                     castle.CHALLENGE_SUCCEEDED,
                     enable_logging=enable_logging)
예제 #2
0
def catch_registration_failed_signal(sender,
                                     request,
                                     enable_logging=False,
                                     **kwargs):
    castle = Castle()
    castle.log_event(request,
                     castle.REGISTRATION_FAILED,
                     enable_logging=enable_logging)
예제 #3
0
def catch_login_ratelimited_signal(sender,
                                   request,
                                   enable_logging=False,
                                   **kwargs):
    castle = Castle()
    castle.log_event(request,
                     castle.LOGIN_RATELIMITED,
                     enable_logging=enable_logging)
예제 #4
0
def catch_registration_success_signal(sender,
                                      request,
                                      enable_logging=False,
                                      **kwargs):
    castle = Castle()
    castle.log_event(request,
                     castle.REGISTRATION_SUCCEEDED,
                     enable_logging=enable_logging)
예제 #5
0
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)
예제 #6
0
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)
예제 #7
0
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)
예제 #8
0
def catch_challenge_failed_signal(sender,
                                  request,
                                  enable_logging=False,
                                  **kwargs):
    castle = Castle()
    castle.log_event(request,
                     castle.CHALLENGE_FAILED,
                     enable_logging=enable_logging)
예제 #9
0
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)
예제 #10
0
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)
예제 #11
0
def catch_logout_signal(sender, request, enable_logging=False, **kwargs):
    castle = Castle()
    castle.log_event(request,
                     castle.LOGOUT_SUCCEEDED,
                     enable_logging=enable_logging)
예제 #12
0
def catch_challenge_failed_signal(sender, request, enable_logging=False, **kwargs):
    castle = Castle()
    castle.log_event(request, castle.CHALLENGE_FAILED, enable_logging=enable_logging)
예제 #13
0
def catch_login_ratelimited_signal(sender, request, enable_logging=False, **kwargs):
    castle = Castle()
    castle.log_event(request, castle.LOGIN_RATELIMITED, enable_logging=enable_logging)
예제 #14
0
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)
예제 #15
0
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)
예제 #16
0
def catch_registration_failed_signal(sender, request, enable_logging=False, **kwargs):
    castle = Castle()
    castle.log_event(request, castle.REGISTRATION_FAILED, enable_logging=enable_logging)
예제 #17
0
def catch_registration_success_signal(sender, request, enable_logging=False, **kwargs):
    castle = Castle()
    castle.log_event(request, castle.REGISTRATION_SUCCEEDED, enable_logging=enable_logging)
예제 #18
0
def catch_loginfail_signal(sender, credentials=None, enable_logging=False, **kwargs):
    castle = Castle()
    castle.log_login_fail(credentials)
예제 #19
0
def catch_logout_signal(sender, request, enable_logging=False, **kwargs):
    castle = Castle()
    castle.log_event(request, castle.LOGOUT_SUCCEEDED, enable_logging=enable_logging)
예제 #20
0
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)
예제 #21
0
def catch_challenge_success_signal(sender, request, enable_logging=False, **kwargs):
    castle = Castle()
    castle.log_event(request, castle.CHALLENGE_SUCCEEDED, enable_logging=enable_logging)
예제 #22
0
def catch_loginfail_signal(sender,
                           credentials=None,
                           enable_logging=False,
                           **kwargs):
    castle = Castle()
    castle.log_login_fail(credentials)
예제 #23
0
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)
예제 #24
0
def catch_login_signal(sender, request, enable_logging=False, **kwargs):
    castle = Castle()
    castle.log_event(request, castle.LOGIN_SUCCESS, enable_logging=enable_logging)
예제 #25
0
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)
예제 #26
0
def catch_login_signal(sender, request, enable_logging=False, **kwargs):
    castle = Castle()
    castle.log_event(request,
                     castle.LOGIN_SUCCESS,
                     enable_logging=enable_logging)
예제 #27
0
def catch_login_signal(sender, request, user, **kwargs):
	castle = Castle()
	castle.log_login_success(user, request)