This PR adds "🟢 valid / 🔴 invalid email" and "🟢 verified / 🔴 unverified email" indicators to the Email Settings page (under User -> Settings -> Email)
These indicators are based on the user.valid_email and user.confirmed_at values of the User resource.
Status
Ready for review.
Next steps: the "request confirmation email" functionality requires either
a fairly custom (and complex) fetch() function inside email.jsx to POST to panoptes.zooniverse.org/api/users/confirmation with the auth token inside the code, or
For this PR, the "request confirmation email" has been disabled. (I got halfway through option 1 but ran into some bugs due to a malformed request, and option 3 hit a small snag when I realised I need to check the env to get the correct URL.)
coverage: 56.994% (+0.01%) from 56.98%
when pulling 6125950ee6aebbed35bf0c4975e74ca5c22d338b on email-verification-status
into b8cf174c780f7b5a242b91529115cfa7235b3742 on master.
PR Overview
Staging branch URL: https://pr-7083.pfe-preview.zooniverse.org Towards #7032
This PR adds "🟢 valid / 🔴 invalid email" and "🟢 verified / 🔴 unverified email" indicators to the Email Settings page (under User -> Settings -> Email)
user.valid_email
anduser.confirmed_at
values of the User resource.Status
Ready for review.
Next steps: the "request confirmation email" functionality requires either
For this PR, the "request confirmation email" has been disabled. (I got halfway through option 1 but ran into some bugs due to a malformed request, and option 3 hit a small snag when I realised I need to check the env to get the correct URL.)