예제 #1
0
 def save(self, email_template_name=None, use_https=False, token_generator=default_token_generator, from_email=None, request=None, email_template=None, **kwargs):
     if not email_template:
         email_template = email_template_name
     if not email_template:
         email_template = auth.default_password_reset_template()
     user = self.get_user()
     domain = viewutil.get_request_server_url(request)
     return auth.send_password_reset_mail(domain, user, email_template, sender=from_email, token_generator=token_generator)
예제 #2
0
 def save(self, email_template_name=None, use_https=False, token_generator=default_token_generator, from_email=None, request=None, email_template=None, **kwargs):
     if not email_template:
         email_template = email_template_name
     if not email_template:
         email_template = auth.default_password_reset_template()
     user = self.get_user()
     domain = viewutil.get_request_server_url(request)
     return auth.send_password_reset_mail(domain, user, email_template, sender=from_email, token_generator=token_generator)