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:
Jason Michalski
2014-09-24 22:01:53 -07:00
committed by Waseem Daher
parent 6b1adf11f7
commit 50c43b45ee

View File

@@ -107,6 +107,10 @@ class GoogleBackend(ZulipAuthMixin):
# create a new user, or send a message to admins, etc.
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
class ZulipRemoteUserBackend(RemoteUserBackend):