File diff 0487525f5c26 → 30f4b245c065
pinaxcon/account_hooks.py
Show inline comments
...
 
@@ -16,11 +16,10 @@ class BetterAccountHookSet(hooks.AccountDefaultHookSet):
 
        return {
 
            "username": username,
 
            "password": form.cleaned_data["password"],
 
        }
 

	
 
    def get_username_by_email(self, email):
 

	
 
        try:
 
            return User.objects.get(email=email).username
 
        except User.DoesNotExist:
 
            return None