mirror of
https://github.com/open-webui/open-webui
synced 2025-02-23 05:38:41 +00:00
check name is none
This commit is contained in:
parent
e9d6ada25c
commit
db0a12f9f1
@ -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 New Issue
Block a user