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

Update login error message to reflect form input #5766

Closed
tierninho opened this issue Sep 27, 2018 · 4 comments
Closed

Update login error message to reflect form input #5766

tierninho opened this issue Sep 27, 2018 · 4 comments
Labels
enhancement good first issue Issues marked as ideal for a brand new contributor to start with help wanted Issues marked as ideal for external contributors

Comments

@tierninho
Copy link
Contributor

When using the login form (welcome flow or Preferences) we display an error message if the username/email/password is incorrect.

"Incorrect username or password."

However, the above error message is generic and only reflects the the username field. The error message should recognize when a user attempts to login with an email address.

  • Do we make the error message dynamic or simply update the text? As the latter is easier, so I suggest we update the message to: "Incorrect username/email or password."

screen shot 2018-09-27 at 9 51 38 am

screen shot 2018-09-27 at 9 50 57 am

Code:

error: new Error('Incorrect username or password.'),

1.4.2-beta0, mac

@tierninho tierninho added enhancement help wanted Issues marked as ideal for external contributors good first issue Issues marked as ideal for a brand new contributor to start with labels Sep 27, 2018
@Daniel-McCarthy
Copy link
Member

I see a pull request is already currently open for this to update the message to include email in the error.

Though, if at a later time it's decided it would be preferable to go more dynamic, for deciding which to show it would likely be sufficient to check if the input text contains an @ since it is not a legal GitHub name character.

Just wanted to mention this as food for thought. 👍
It's great seeing the good first issue tag being used more.

@tierninho
Copy link
Contributor Author

@tiagodenoronha thanks for the quick fix!!

@Daniel-McCarthy Yes, the dynamic route is a good option. I'll let the team weigh in first. Many thanks for the input and all the hard work!

@tiagodenoronha
Copy link
Contributor

That is actually a nice solution. Check whether the input has an @ and present a different message per case!

@tiagodenoronha
Copy link
Contributor

@tierninho Close if it's ok!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement good first issue Issues marked as ideal for a brand new contributor to start with help wanted Issues marked as ideal for external contributors
Projects
None yet
Development

No branches or pull requests

3 participants