Fix OurAuthenticationForm return value for invalid accounts.

(imported from commit 10461554bec5d86d2ab768177762f11cd905e0f3)
This commit is contained in:
Tim Abbott
2014-01-09 10:27:01 -05:00
parent 47500d8352
commit 2c87cb5101

View File

@@ -92,7 +92,7 @@ class OurAuthenticationForm(AuthenticationForm):
try:
user_profile = get_user_profile_by_email(email)
except UserProfile.DoesNotExist:
return
return email
if user_profile.realm.deactivated:
error_msg = u"""Sorry for the trouble, but %s has been deactivated.