-
Notifications
You must be signed in to change notification settings - Fork 313
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
Custom PasswordResetSerializer to send different email message not working #345
Comments
Ok, after some tests I came to this: I removed allauth checks in PasswordResetSerializer and in PasswordResetConfirmSerializer by creating custom classes and now everything is working as intended. Many thanks to this reply. I wonder why customization didn't get applied if allauth classes were used... Here's the changes: mainapp/serializers.py
settings.py
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I switched from django rest auth to dj-rest-auth and tried to test password reset request it sent default email message instead of custom one. Basically I just send request to /api/rest-auth/password/reset/ and with django rest auth everything worked as expected.
Here's the code:
mainapp/serializers.py
settings.py:
templates/messages/password_reset_message.html
urls.py
Maybe there were some changes in
get_email_options
method?How can I change default email message if this doesn't work?
The text was updated successfully, but these errors were encountered: