From e7be08810a22e59d95edd78443a0576f978cc16b Mon Sep 17 00:00:00 2001 From: lian Date: Wed, 13 Jan 2021 21:34:40 +0800 Subject: [PATCH] use get_emailuser_with_import when check if user exists (#4787) Co-authored-by: lian --- seahub/base/accounts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seahub/base/accounts.py b/seahub/base/accounts.py index b94dcf9012..aca4349bc0 100644 --- a/seahub/base/accounts.py +++ b/seahub/base/accounts.py @@ -322,7 +322,7 @@ class User(object): return True def save(self): - emailuser = ccnet_threaded_rpc.get_emailuser(self.username) + emailuser = ccnet_api.get_emailuser_with_import(self.username) if emailuser: if not hasattr(self, 'password'): self.set_unusable_password() @@ -538,7 +538,7 @@ class User(object): class AuthBackend(object): def get_user_with_import(self, username): - emailuser = seaserv.get_emailuser_with_import(username) + emailuser = ccnet_api.get_emailuser_with_import(username) if not emailuser: raise User.DoesNotExist('User matching query does not exits.')