mirror of https://github.com/zulip/zulip.git
auth: Check for DevAuthBackend being enabled earlier.
This commit is contained in:
parent
07bc31f818
commit
fa8eab303a
|
@ -538,11 +538,11 @@ class DevAuthBackend(ZulipAuthMixin):
|
|||
assert dev_auth_username is not None
|
||||
if realm is None:
|
||||
return None
|
||||
if not dev_auth_enabled(realm):
|
||||
return None
|
||||
user_profile = common_get_active_user_by_email(dev_auth_username, return_data=return_data)
|
||||
if user_profile is None:
|
||||
return None
|
||||
if not dev_auth_enabled(realm):
|
||||
return None
|
||||
assert realm == user_profile.realm
|
||||
return user_profile
|
||||
|
||||
|
|
Loading…
Reference in New Issue