You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a person "registers," they get no feedback, but are just tossed back onto home page with no evidence of success.
Instead, could they be rewarded with a message that says something like: "Thanks for starting to register an account on our website. To complete your registration, please check your email for an message from us. You should have just received one. Please look in your spam / junk folder if our message is not in your inbox.
Also,
Please revise the message they get in that email so that it says something like: "Thanks for beginning your registration process on the Western Friend website. To complete your registration, click on the link below. If the link doesn't respond, please cut an paste it into your browser, then hit your return key.
Task
update registration page to use the Django messages framework to display the following message directly on the website after the user submits the registration form
"Thanks for starting to register an account on our website. To complete your registration, please check your email for an message from us. You should have just received one. Please look in your spam / junk folder if our message is not in your inbox."
update the registration confirmation email template to include the following text:
"Thanks for beginning your registration process on the Western Friend website. To complete your registration, click on the link below. If the link doesn't respond, please cut an paste it into your browser, then hit your return key."
Resources
This project is already configured to use and correctly messages from the Django messages framework. So, we should only need a small change to trigger the message, as described in the Django messages documentation.
check_email_message="Thanks for starting to register an account on our website. To complete your registration, please check your email for an message from us. You should have just received one. Please look in your spam / junk folder if our message is not in your inbox"messages.info(request, check_email_message)
The message should be added within a callback of our CustomRegistrationView such as the form_valid handler which redirects to the main page:
The above code could be extended with the following form_valid method:
defform_valid(self, form):
check_email_message="Thanks for starting to register an account on our website. To complete your registration, please check your email for an message from us. You should have just received one. Please look in your spam / junk folder if our message is not in your inbox"# notice we use `self.request` here since the request is a member of the CustomRegistrationView instancemessages.info(self.request, check_email_message)
returnsuper().form_valid(form)
The text was updated successfully, but these errors were encountered:
@sim-codes, I've updated the issue description to include two tasks:
use Django messages to display a confirmation message directly on the website after the registration form is submitted
modify the registration confirmation email template
The related PR currently only contains the changes to the email template. So, we will need to also display instructions to check the registrants email on the website using the Django messages framework.
I've updated the issue description to contain the particular code to change. Please try the instructions/code in the new description and let me know if you encounter any difficulties.
When a person "registers," they get no feedback, but are just tossed back onto home page with no evidence of success.
Instead, could they be rewarded with a message that says something like: "Thanks for starting to register an account on our website. To complete your registration, please check your email for an message from us. You should have just received one. Please look in your spam / junk folder if our message is not in your inbox.
Also,
Please revise the message they get in that email so that it says something like: "Thanks for beginning your registration process on the Western Friend website. To complete your registration, click on the link below. If the link doesn't respond, please cut an paste it into your browser, then hit your return key.
Task
Resources
This project is already configured to use and correctly messages from the Django messages framework. So, we should only need a small change to trigger the message, as described in the Django messages documentation.
The message should be added within a callback of our
CustomRegistrationView
such as theform_valid
handler which redirects to the main page:westernfriend.org/accounts/views.py
Lines 12 to 23 in a138f1b
The above code could be extended with the following
form_valid
method:The text was updated successfully, but these errors were encountered: