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

This commit is contained in:
Khushboo Vashi 2024-01-03 15:53:41 +05:30
parent fcfe7cfb7c
commit 4d74f84d80

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
"""
if isinstance(user, User):
user = user.username
auth_source = user.auth_source
user = user.username
new_user = User.query.filter_by(username=user,
auth_source=auth_source).first()