-
Notifications
You must be signed in to change notification settings - Fork 1k
Manage emails #2898
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
Manage emails #2898
Conversation
da2f817
to
6fb784b
Compare
@lgh2, Dustin and I would like for you to review this PR. Please:
Edge cases Dustin would like you to investigate start with:
If you think of more edge cases to test, please go ahead and try them! |
Ok, I will test it. |
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.
Automated tests
tests pass
linter passes
Manual tests
For the purposes of these tests, I set up 2 accounts, “Laura” and “Jane”. The email address [email protected] and [email protected] are associated with the Jane account.
I used LastPass to store the credentials for both accounts.
I was using Chrome Version 64.0.3282.119 (Official Build) beta (64-bit) on Linux Mint 18.1 (Ubuntu Xenial 16.04)
add an email, then delete it, then follow the verification link — what happens?
- banner displays "email not found"
- email is gone from "Add email address" box
add an email, log out, then follow the verification link — what happens?
- redirected to login screen
- green banner displays email address that was verified, displaying the email address (screenshot)
- for security reasons, is it advisable to display the email to someone who is logged out?
- email is verified when I log back in
add an email for user A, log in as user B, follow the verification link — what happens?
- banner displays email verification message showing email, even when I am logged in to another account
- email is verified when I log in as the original user again
open the management page in two separate tabs, and try to delete the same email twice — what happens?
- email address not found banner is displayed in the second browser tab.
- email is gone from both tabs.
Here are screenshots associated with my previous comment: add an email, log out, then follow the verification link — what happens? This screenshot shows the verified email address shown in the banner when the user is logged out, after following the link in the verification email: add an email for user A, log in as user B, follow the verification link — what happens? This screenshot shows an email associated with another user's account displayed when I am logged in, after I clicked the email verification link while logged in: |
Adding emails, deleting emails, changing primary emails, resending verification emails.
@lgh2 Thanks very much for the QA! And great find. I've pushed a commit which requires that a user must be logged in before they can verify a new email address. Can you re-test the second and third use cases? |
Great, thanks @lgh2! |
Adding emails, deleting emails, changing primary emails, resending verification emails.
If anyone feels like testing this, a few more edge cases you could check:
|
9e4c4a2
to
ff75be8
Compare
ff75be8
to
0990b88
Compare
@brainwane I've tested the application with the said test cases and everything seems to work perfectly. I've tested them on both Chrome as well as Firefox browsers. |
Fixes #2830. This PR adds the ability to add and remove emails, as well as change the primary email address. It also adds the ability to verify email addresses (and re-send verification emails).
@nlhkabu I was imaginging that the "Primary", "Verified" and "Unverified"
span
s could be colored labels. Also imagining that the "Add" and "Save" buttons would be inline with their respective input fields.