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

649 login friendly messages #991

Merged
merged 4 commits into from
Oct 12, 2020

Conversation

jxofficial
Copy link
Contributor

@jxofficial jxofficial commented Jun 27, 2020

PR Type

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

PR Checklist

  • - Latest master branch merged
  • - PR title descriptive (can be used in release notes)
  • - Passes Tests

Description

Provide friendly messages for failed login.
If email provided is invalid, error message "No account found, typo maybe?" is displayed.
If password provided is invalid, error message "Password does not match the user account" is displayed.

Git Issues

Closes #649

@cypress
Copy link

cypress bot commented Jun 27, 2020



Test summary

60 0 0 0


Run details

Project onearmy-community-platform
Status Passed
Commit 4e63efb ℹ️
Started Jul 11, 2020 10:35 AM
Ended Jul 11, 2020 10:40 AM
Duration 04:34 💡
OS Linux Ubuntu Linux - 16.04
Browser Multiple

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@BenGamma BenGamma requested a review from chrismclarke July 8, 2020 11:49
@BenGamma
Copy link
Contributor

BenGamma commented Jul 8, 2020

Looks good to me !
I'm asking quick review from @chrismclarke as he was the one following up the issue.

@jxofficial
Copy link
Contributor Author

Thanks for the update!

In the meantime, I have gone ahead and merged the latest master branch before the final review.

Copy link
Member

@chrismclarke chrismclarke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, didn't realise this one is waiting on me. I can see the changes are fairly straight-forward (adding the extra message and profile component bindings). I notice that you have also refactored the messages to a separate utils file, I'm happy that it isn't within the component although thinking about it I think it would make more sense to be in some form of standalone file to make it easier to change, add to or translate in the future (e.g utils/strings.ts or similar). But for now I'd say good to merge and we can worry about the rest later.

@chrismclarke chrismclarke merged commit 0cff021 into ONEARMY:master Oct 12, 2020
@BenGamma BenGamma mentioned this pull request Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Friendly messages for failed login
3 participants