Skip to content
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

Unclear how to send emails for registration or password change. #29

Closed
ademartini opened this issue Nov 8, 2014 · 4 comments
Closed

Comments

@ademartini
Copy link

It isn't documented anywhere how to hook into the email sending mechanism. Do I need to implement this? If so, where do I hook into this? Or is it supposed to happen automatically and I just specify a template?

@ademartini
Copy link
Author

Also, no email is sent in the demo.

@mateusz-sikora
Copy link
Contributor

If you just want to use your custom template you just need to specify it and put in correct path - like standard template overriding.

Sending email after registration is basically handled by django-allauth, so you probably need to dig more in this part of code https://github.com/Tivix/django-rest-auth/blob/master/rest_auth/registration/views.py#L15 and in django-allauth documentation.

Email with password reset is handled by standard django form, wrapped by serializer - see this part of code https://github.com/Tivix/django-rest-auth/blob/master/rest_auth/serializers.py#L51 and PasswordResetForm usage.

Email backend in demo project is set to console, so all emails which are sent out from system are just printed on your console.

@ademartini
Copy link
Author

Sorry about that, I had posted this before doing some more research. It all makes sense after reading about django-allauth.

Thanks again for this project, I have it integrated into my project and it works great!

@mateusz-sikora
Copy link
Contributor

No problem. I'm glad you already integrated it! 👍

steverecio pushed a commit to steverecio/django-rest-auth that referenced this issue Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants