Improve sign up flow#90
Merged
Merged
Conversation
- Added `file-type` and `sharp` packages to `package.json` for enhanced file handling and image processing capabilities. - Introduced new `passwordStrength` helper function for password validation, providing feedback on password strength. - Created `cubeForm` and `signup` validation schemas using Zod for structured data validation in forms. - Updated user avatar handling in the signup process to support file uploads and image processing. - Refactored user profile and signup components to integrate new validation logic and improve user experience.
- Introduced a new server route for handling email OTP verification, allowing users to confirm their accounts. - Implemented error handling for missing parameters and verification failures. - Updated user profiles to mark them as verified upon successful OTP verification. - Added functionality to sync user data with Brevo after verification. - Ensured safe redirection to prevent open redirects.
✅ Deploy Preview for cubeindexbeta canceled.
|
…process - Updated the error handling in the signup action to include the specific user error in the failure message, enhancing clarity for debugging and user feedback.
- Enhanced the error message to provide clearer feedback by including a conditional check for user errors, improving user experience during signup failures.
- Changed the error response for missing token_hash or type from a 303 to a 400 status code, providing clearer feedback for client-side validation during the OTP verification process.
- Replaced token_hash and type parameters with a single code parameter for OTP verification. - Adjusted error handling to return a 400 status code for missing code, improving clarity in client-side validation during the verification process.
…ation flow - Simplified the GET handler for OTP verification by removing unnecessary parameters and improving error handling for profile creation. - Updated the signup action to provide clearer feedback for user data retrieval failures and adjusted the redirect logic to enhance user experience. - Improved the email verification process by ensuring users are prompted to verify their email before proceeding with signup.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request improves the sign up process to CubeIndex, with better sign up page UI and backend flow