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

Two updates (using Site for domain as doc says, specifying template context) #26

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

adamestein
Copy link

  1. The README says that if EMAIL_CONFIRM_LA_DOMAIN isn't set, Site.objects.get_current().domain will be used. Code didn't actually do that. EMAIL_CONFIRM_LA_DOMAIN was hardcoded to 'example.com'. Updated to actually use Site.objects.get_current().domain as the default value. If there is an exception (Site isn't being used), will fallback to 'example.com'.

  2. Added ability to send in template context data when using verify_email_for_object(). This function was calling send() which already had the ability to accept template context data (but was never used since verify_email_for_object() never passed any context data through).

Updated README and added unit tests as well.

@vinta
Copy link
Owner

vinta commented Jun 13, 2018

Oh no, CI is failed.

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

Successfully merging this pull request may close these issues.

None yet

2 participants