Open tiago-peres opened 4 years ago
For instances
{% load i18n %}{% blocktrans %}Hello!
You're receiving this e-mail because you or someone else has requested a password for your user account.
It can be safely ignored if you did not request a password reset. Click the link below to get the token.{% endblocktrans %}
{{ reset_password_url }}
Then, if you go to /test_app/reset-password/confirm/, you can paste the token and the new password.
{% if email %}{% blocktrans %}In case you forgot, your email is {{ email }}.{% endblocktrans %}
{% endif %}{% blocktrans %}Have a great day!
{% endblocktrans %}
Thank you for your comment. Yes, that surely would be helpful for new users! However, the template belongs to the users project tree, the template-example should be mentionend in the readme in the email-section. Can you create a pull request for your example, so we can add it to the repository?
To do this, first you have to fork our repo and create a new branch. Then add your example-template to the README.md
under the subsection "Example for sending an e-mail". Next, you start a pull-request from your repo to our (upstream) repo via the github-interface, see this guide for more information: https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request-from-a-fork
Let me know if you need help with this!
I think this could go hand in hand with https://github.com/anexia-it/django-rest-passwordreset/issues/103 (Creating an example project).
I believe it would be easier to have a full example project (with templates, etc...) as a separate repository and just link to this project.
I have some questions. from the email template what I have understood is we have to provide two links in the email. One is to generate the token One is to add the token and a new password to reset the password. if yes I am right? then it is not better to just send the token to the user on his email and provide only the link to reset the password? Please let me know thanks
Quick question, where should the templates live? I placed them in the template folder in the main directory (where asgi.py and url files are) and it couldnt find them. However it only searched other 3rd party packages as can be seen here: Any advice would be super helpful. For reference there are no other templates in this project because of a React Frontend.
Would be great to have one example at least of the email templates.