mirror of
https://github.com/open-webui/open-webui
synced 2025-02-23 05:38:41 +00:00
Merge pull request #9516 from cloudron-io/oauth_username
oidc: pick up username correctly
This commit is contained in:
commit
8a54df1ed2
@ -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 isinstance(name, str):
|
||||
name = email
|
||||
|
||||
role = self.get_user_role(None, user_data)
|
||||
|
Loading…
Reference in New Issue
Block a user