This pull request updates the login functionality to use username instead of email for user authentication. This change aligns with our updated user identification strategy, enhancing the login process's flexibility and user experience.
Summary
Changed the user identification parameter from email to username in the login route.
Updated the User.findOne query to search for users by username instead of email.
Affected file: src/app/api/users/login/route.ts.
Fixes #5.
🎉 Latest improvements to Sweep:
New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
PR Feedback (click)
Description
This pull request updates the login functionality to use
username
instead ofemail
for user authentication. This change aligns with our updated user identification strategy, enhancing the login process's flexibility and user experience.Summary
email
tousername
in the login route.User.findOne
query to search for users byusername
instead ofemail
.src/app/api/users/login/route.ts
.Fixes #5.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can:
This is an automated message generated by Sweep AI.