mirror of
https://github.com/zulip/zulip.git
synced 2025-10-30 03:23:50 +00:00
Allow mirror dummy users to register with google auth
Mirror dummy users should not be found during login to allow registration. (imported from commit d8cc4c97438193d7bb13d065705e2202ba96591c)
This commit is contained in:
committed by
Waseem Daher
parent
6b1adf11f7
commit
50c43b45ee
@@ -107,6 +107,10 @@ class GoogleBackend(ZulipAuthMixin):
|
|||||||
# create a new user, or send a message to admins, etc.
|
# create a new user, or send a message to admins, etc.
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
if user_profile.is_mirror_dummy:
|
||||||
|
# mirror dummies can not login, but they can convert to real users
|
||||||
|
return None
|
||||||
|
|
||||||
return user_profile
|
return user_profile
|
||||||
|
|
||||||
class ZulipRemoteUserBackend(RemoteUserBackend):
|
class ZulipRemoteUserBackend(RemoteUserBackend):
|
||||||
|
|||||||
Reference in New Issue
Block a user