-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 fix: fix wrong email linking in next-auth db adapter #4919
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@cy948 is attempting to deploy a commit to the LobeChat Community Team on Vercel. A member of the Team first needs to authorize it. |
👍 @cy948 Thank you for raising your pull request and contributing to our Community |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4919 +/- ##
=========================================
Coverage 92.07% 92.07%
=========================================
Files 527 527
Lines 40050 40060 +10
Branches 2489 3516 +1027
=========================================
+ Hits 36877 36887 +10
Misses 3173 3173
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
6a39759
to
a8b3f66
Compare
a8b3f66
to
302ef8d
Compare
❤️ Great PR @cy948 ❤️ The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world. |
### [Version 1.36.5](v1.36.4...v1.36.5) <sup>Released on **2024-12-09**</sup> #### 🐛 Bug Fixes - **misc**: Fix wrong email linking in next-auth db adapter. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Fix wrong email linking in next-auth db adapter, closes [#4919](#4919) ([af45a28](af45a28)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
🎉 This PR is included in version 1.36.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
### [Version 1.78.3](v1.78.2...v1.78.3) <sup>Released on **2024-12-09**</sup> #### 🐛 Bug Fixes - **misc**: Fix wrong email linking in next-auth db adapter. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Fix wrong email linking in next-auth db adapter, closes [lobehub#4919](https://github.com/bentwnghk/lobe-chat/issues/4919) ([af45a28](af45a28)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
src/libs/next-auth/adapter/index.ts
: 修复当用户没有邮箱时,会根据邮箱用户链接到其他用户。src/database/server/models/__tests__/nextauth.test.ts
: 当存在一个没有邮箱的用户A时,再创建一个没有邮箱的用户不会自动链接到用户B。📝 补充信息 | Additional Information