-
Notifications
You must be signed in to change notification settings - Fork 8
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
Login using email address #397
base: main
Are you sure you want to change the base?
Conversation
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.
Also we want to keep it on hold as with verified email we can login even now
@@ -50,20 +50,24 @@ const SignIn = () => { | |||
} | |||
|
|||
return ( | |||
<form className='sign' onSubmit={handleSubmit(onSubmit)}> | |||
<form className='sign' onSubmit={handleSubmit(onSubmit)} noValidate> |
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.
why is validation error removed?
message: 'You must enter username' | ||
message: 'You must enter email' | ||
}, | ||
pattern: { |
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.
email pattern will not be required as input type should do that
@@ -69,21 +69,25 @@ const ForgotPassword = () => { | |||
|
|||
return ( | |||
<SignLayout> | |||
<form className='sign'> | |||
<form className='sign' noValidate> |
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.
validation should not be removed
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.
I removed noValidate and changed email field type to text.
message: 'You must enter username' | ||
message: 'You must enter email' | ||
}, | ||
pattern: { |
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.
pattern validation will not be required
Fixes #issue_number
Description
Login using email address on login, signup and forgot password screen.
Screenshots
Links and Curls
http://localhost:3000/login
http://localhost:3000/register
http://localhost:3000/forgot-password