This issue tracks the complete implementation of the Seller Signup functionality, covering both frontend pages and backend logic. The seller signup will follow a secure OTP-based email verification process to ensure valid registrations.
π Key Objectives
Frontend Pages and Forms
Create the Seller Signup Form for collecting basic information (e.g., name, email, password).
Upon form submission, make a request to the backend to create a new user in the database and send an OTP to the provided email address.
Implement a second form to input the OTP received via email.
Ensure smooth user experience with appropriate success and error messages.
OTP-based Email Verification
Generate a 6-digit OTP and send it to the sellerβs email upon form submission.
Create a reusable email utility function to handle OTP email sending using Nodemailer.
Ensure proper error handling for email delivery issues (e.g., invalid email or delivery failure).
Backend Server Actions
Implement server-side logic to create a new user in the database using Prisma ORM.
Develop API routes to:
Send OTP to the email address after signup.
Verify the OTP submitted by the user.
Mark the user as validated upon successful OTP verification.
π Description
This issue tracks the complete implementation of the Seller Signup functionality, covering both frontend pages and backend logic. The seller signup will follow a secure OTP-based email verification process to ensure valid registrations.
π Key Objectives
Frontend Pages and Forms
OTP-based Email Verification
Backend Server Actions
π οΈ Requirements
Frontend Implementation
Backend Logic
Error Handling & Notifications
Screenshots
No response
Checklist