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

Add support to handle unverified accounts at login #2976

Merged
merged 2 commits into from
Aug 21, 2021

Conversation

sandymcfadden
Copy link
Contributor

@sandymcfadden sandymcfadden commented Aug 15, 2021

Fix

This will add support to show an error message with a link to start verification of account email when logging in with an unverified account.

Todo

  • Get clarification on error message copy

Test

This is rather hard to test currently to see the new error message as changes to the API endpoint haven't been made to show the error yet.

We can ensure that login still works as expected that you can log in with a valid email and password, and you can't log in with an invalid one.

In order to test this, I had to set up Charles Proxy and use it to intercept the API call and change the response text to be verification required

Release

  • Added support for handling failed logins due to having an unverified account email

@sandymcfadden sandymcfadden added this to the 2.18.0 milestone Aug 15, 2021
@sandymcfadden sandymcfadden self-assigned this Aug 15, 2021
Copy link

@nsakaimbo nsakaimbo left a comment

Choose a reason for hiding this comment

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

Looks good! Small nit: please add a comment around the order-of-priority for the password check vs. the unverified accounts, i.e. the user updating their password will lead to automatic account verification (since the password update is routed through their email).

Otherwise changes are pretty similar to #2972 and seem pretty straightforward.

Update node-simperium dependancy to latest
Fix logic error in login error handling
Add support for failed login due to unverified account
Fix typo in error message
Update error message
@sandymcfadden sandymcfadden force-pushed the add/account-verification-check-login branch from 052461e to 19e9051 Compare August 21, 2021 12:52
@sandymcfadden sandymcfadden merged commit cfff40d into develop Aug 21, 2021
@sandymcfadden sandymcfadden deleted the add/account-verification-check-login branch August 21, 2021 13:22
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.

None yet

2 participants