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

3438 email verification 0121 #7516

Merged
merged 15 commits into from
Jan 25, 2021
Merged

3438 email verification 0121 #7516

merged 15 commits into from
Jan 25, 2021

Conversation

sekmiller
Copy link
Contributor

@sekmiller sekmiller commented Jan 20, 2021

What this PR does / why we need it:
Fixes a bug where the page refresh of dataverse user resends the email verification. Also keeps the "Verify Email" button available while the user's email is unverified.

Which issue(s) this PR closes:

Closes #3438

Special notes for your reviewer: The underlying cause of the bug was that the page load/refresh was triggering the sendConfirmEmail method which was in the action of the verify button. To fix it I moved it to a remote command. If there's a better way to handle it, I'm open to suggestions.
Also note that the branch has a -0121 on the end of its name due to some git issue I had last week.

Suggestions on how to test this:
I noticed one thing in my testing that I wasn't able to recreate: at least once there was a time when the user had an active token but pressing the "verify" button did not cause the popup to display. I also had an issue where refreshing the page would resend the confirmation email. I think that is resolved.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:
UI changes have been reviewed/approved by the design team. #3438 (comment)

Is there a release notes update needed for this change?:
no
Additional documentation:
none

@coveralls
Copy link

coveralls commented Jan 20, 2021

Coverage Status

Coverage decreased (-0.008%) to 19.614% when pulling 8f9c03b on 3438-email-verification-0121 into 9d6801d on develop.

@scolapasta
Copy link
Contributor

@sekmiller I sent you a suggestion for how to do this without the remote command via slack.

@scolapasta scolapasta self-assigned this Jan 21, 2021
Copy link
Contributor

@scolapasta scolapasta left a comment

Choose a reason for hiding this comment

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

Good changes to remove the remote command and clean up some.

@scolapasta scolapasta removed their assignment Jan 21, 2021
@kcondon kcondon self-assigned this Jan 22, 2021
@kcondon kcondon merged commit 56b5b27 into develop Jan 25, 2021
@kcondon kcondon deleted the 3438-email-verification-0121 branch January 25, 2021 14:39
@djbrooke djbrooke added this to the 5.4 milestone Jan 25, 2021
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.

Email Verification: 2 issues; refresh un-verifies, verify email button should always be available.
6 participants