Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Login using email address #397

wants to merge 2 commits into from

Conversation

ABee-Tech
Copy link
Contributor

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

@ABee-Tech ABee-Tech requested a review from lmmrssa July 26, 2021 12:24
@ABee-Tech ABee-Tech self-assigned this Jul 26, 2021
Copy link
Member

@lmmrssa lmmrssa left a 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>
Copy link
Member

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: {
Copy link
Member

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>
Copy link
Member

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

Copy link
Contributor Author

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: {
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants