Beispiel #1
0
 def is_valid(self, *args, **kwargs):
     result = super(LoginForm, self).is_valid(*args, **kwargs)
     if EMAIL_AUTHENTICATION:
         username = self.data["email"]
     else:
         username = self.data["username"]
     user_login_attempt.send(sender=LoginForm, username=username, result=result)
     return result
Beispiel #2
0
 def is_valid(self, *args, **kwargs):
     result = super(LoginForm, self).is_valid(*args, **kwargs)
     if EMAIL_AUTHENTICATION:
         username = self.data["email"]
     else:
         username = self.data["username"]
     user_login_attempt.send(sender=LoginForm,
                             username=username,
                             result=result)
     return result
Beispiel #3
0
 def is_valid(self, *args, **kwargs):
     result = super(LoginForm, self).is_valid(*args, **kwargs)
     user_login_attempt.send(sender=LoginForm, username=self.data["username"], result=result)
     return result