auth: Set valid_attestation more unconditionally in social auth.

This commit is contained in:
Tim Abbott
2017-11-21 15:41:18 -08:00
committed by Greg Price
parent ade5b4ea69
commit 665fc594db
2 changed files with 4 additions and 4 deletions

View File

@@ -206,8 +206,8 @@ class SocialAuthMixin(ZulipAuthMixin):
try:
user_profile = get_user_profile_by_email(email_address)
except UserProfile.DoesNotExist:
return_data["valid_attestation"] = True
return None
return_data["valid_attestation"] = True
if not user_profile.is_active:
return_data["inactive_user"] = True