Fix a regression issue caused by #6815 fix related to import server issue for external users.

pull/7100/head
Khushboo Vashi 2024-01-03 15:53:41 +05:30
parent fcfe7cfb7c
commit 4d74f84d80
1 changed files with 1 additions and 1 deletions

View File

@ -793,8 +793,8 @@ def _does_user_exist(user, from_setup, auth_source=INTERNAL):
This function will check user is exist or not. If exist then return This function will check user is exist or not. If exist then return
""" """
if isinstance(user, User): if isinstance(user, User):
user = user.username
auth_source = user.auth_source auth_source = user.auth_source
user = user.username
new_user = User.query.filter_by(username=user, new_user = User.query.filter_by(username=user,
auth_source=auth_source).first() auth_source=auth_source).first()