mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
check name is none
This commit is contained in:
parent
e9d6ada25c
commit
db0a12f9f1
1 changed files with 1 additions and 1 deletions
|
|
@ -281,7 +281,7 @@ class OAuthManager:
|
|||
username_claim = auth_manager_config.OAUTH_USERNAME_CLAIM
|
||||
|
||||
name = user_data.get(username_claim)
|
||||
if not isinstance(user, str):
|
||||
if not name:
|
||||
name = email
|
||||
|
||||
role = self.get_user_role(None, user_data)
|
||||
|
|
|
|||
Loading…
Reference in a new issue