diff --git a/pinaxcon/account_hooks.py b/pinaxcon/account_hooks.py index e3affff..6f2b0dd 100644 --- a/pinaxcon/account_hooks.py +++ b/pinaxcon/account_hooks.py @@ -19,7 +19,6 @@ class BetterAccountHookSet(hooks.AccountDefaultHookSet): } def get_username_by_email(self, email): - try: return User.objects.get(email=email).username except User.DoesNotExist: diff --git a/pinaxcon/templates/account_login.html b/pinaxcon/templates/account_login.html index a660e25..a058d0c 100644 --- a/pinaxcon/templates/account_login.html +++ b/pinaxcon/templates/account_login.html @@ -15,7 +15,7 @@