@@ -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