Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 18
0
def catch_loginfail_signal(sender, credentials=None, enable_logging=False, **kwargs):
    castle = Castle()
    castle.log_login_fail(credentials)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 22
0
def catch_loginfail_signal(sender,
                           credentials=None,
                           enable_logging=False,
                           **kwargs):
    castle = Castle()
    castle.log_login_fail(credentials)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 27
0
def catch_login_signal(sender, request, user, **kwargs):
	castle = Castle()
	castle.log_login_success(user, request)