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 signup query #1608
Fix signup query #1608
Conversation
@miguelnietoa is attempting to deploy a commit to the cal Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! Everything looks fine from my side. I'm tagging @jamiepine since he's working in a team settings refactor.
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/cal/calendso/8rvMAkEgqqKoGb6yUXZJs4PBCX9V |
All right @zomars , thanks. 💯 |
BTW @miguelnietoa there are some conflicts with main that must be resolved first. Also there is one test failing. If we could check those out before merging that would be awesome. 🙏🏽 |
6808ab8
to
833471b
Compare
Both required changes are done! 👍🏻 @zomars Best. |
Thank you for your contribution! I'll merge once all checks passes. |
@miguelnietoa we just need to update the branch to main and we're good to go! 👍🏽 |
Thanks @zomars 🚀 |
* Remove emailVerified not null from query * Improve query to find existing user * Add test suite to Signup from a Team Invite * Allow importing modules with aliases * Delete created data after all tests * Resolve conflicts * Use teampro instead of pro user and refactor code
What does this PR do?
This PR modifies the query to check if there is an existing user, removing the condition that the email must be verified and adding ones that check if both password and username are set. The condition of email verified is not necessary because even if the email is not verified the user exists and has access to create event types, bookings, teams, etc.
Some tests were also added.
Fixes #1432
Type of change
How should this be tested?
/settings/teams
)/auth/signun?token={token}
. Thetoken
can be found in theVerificationRequest
table.Username already taken
Checklist: