mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +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:
|
try:
|
||||||
user_profile = get_user_profile_by_email(email)
|
user_profile = get_user_profile_by_email(email)
|
||||||
except UserProfile.DoesNotExist:
|
except UserProfile.DoesNotExist:
|
||||||
return
|
return email
|
||||||
|
|
||||||
if user_profile.realm.deactivated:
|
if user_profile.realm.deactivated:
|
||||||
error_msg = u"""Sorry for the trouble, but %s has been deactivated.
|
error_msg = u"""Sorry for the trouble, but %s has been deactivated.
|
||||||
|
|||||||
Reference in New Issue
Block a user