BB-2426: Add email verification page
This PR replaces the Ocim email confirmation page by a page in the new frontend.
Testing instructions:
- Checkout this branch.
- Add these variables to your
.env
:
USER_CONSOLE_FRONTEND_URL="http://localhost:3000/"
NEW_USER_CONSOLE_REGISTRATION_ENABLED=True
- Make sure you have email set up on your devstack:
EMAIL_BACKEND='django.core.mail.backends.smtp.EmailBackend'
# SMTP configuration
EMAIL_HOST=smtp.gmail.com
EMAIL_USE_TLS=True
EMAIL_PORT=587
EMAIL_HOST_USER=YOUR-ACCOUNT@opencraft.com
EMAIL_HOST_PASSWORD=<PASSWORD>
- Register a new instance.
- Click the link in your email, check that you were taken to the new frontend, and wait until the confirmation page appears.
- Check that the instance starts provisioning.
- Try a random link: http://localhost:3000/verify-email/1234/ and check that the email verification fails.
Reviewer:
-
@lgp171188