Closed pankaj-bind closed 2 weeks ago
@pankaj-bind is attempting to deploy a commit to the Sanchit Bajaj's projects Team on Vercel.
A member of the Team first needs to authorize it.
The recent update to the RegisterComponent
in index.tsx
includes renaming the submitHander
function to submitHandler
and introducing a new checkEmail
function to validate the email's authenticity before form submission. Additionally, error messages have been refined for better clarity.
File | Summary of Changes |
---|---|
src/components/pages/auth/register/index.tsx |
Renamed submitHander to submitHandler ; added checkEmail for email validation; updated error messages |
sequenceDiagram
participant User
participant RegisterComponent
participant EmailService
User->>RegisterComponent: Submit Registration Form
RegisterComponent->>RegisterComponent: validate form fields
RegisterComponent->>EmailService: checkEmail(email)
EmailService-->>RegisterComponent: email validation result
alt email valid
RegisterComponent->>RegisterComponent: submitHandler(event)
RegisterComponent-->>User: Registration Successful
else email invalid
RegisterComponent-->>User: Display Error Message
end
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Hi can you provide a video for the same
Hi @pankaj-bind, can you provide the emails on which you have tested this debounce Api. I have used some of my emails as well as some random emails, but it is returning disposable: false in every case
@pankaj-bind if i didn't get changes in this pr by sunday, then I will reject this
Related Issue
fixes #306
Description
now when user clicks on register now, if the email is disposable then alerts disposable email and do not create account, and if email is genuine then it will proceed.
Summary by CodeRabbit