mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
Fix OurAuthenticationForm return value for invalid accounts.
(imported from commit 10461554bec5d86d2ab768177762f11cd905e0f3)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user