Open yelc66 opened 2 weeks ago
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
🥰 Description of requirements
Or where can I set up to solve this problem?
No response
👀 @yelc66
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.\ 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。
如果用户有name
信息,也会进行显示。 你可以对用户的name
信息进行更改。至于能否生效还要看 #3774 实现。 此处显示的判断逻辑:
https://github.com/lobehub/lobe-chat/blob/0c4efe4b33f6f26f5b2c4d3b48e8e9c9ccac8fdf/src/store/user/slices/auth/selectors.ts#L9-L15
LogtoProvider的处理: https://github.com/lobehub/lobe-chat/blob/3f92adc8e3ddac0475e22cb5c2d49f7d2e533e35/src/libs/next-auth/sso-providers/logto.ts#L22-L30
@cy948 我感觉应该参考下 generic-oidc
的实现,name 那边用 name: profile.name ?? profile.username ?? profile.email
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
@cy948 I think we should refer to the implementation of
generic-oidc
. For name, usename: profile.name ?? profile.username ?? profile.email
🥰 需求描述
🧐 解决方案
或是可以设置哪里解决这个问题嘛
📝 补充信息
No response