示例#1
0
 def send_email(self, user):
     protocol = getattr(settings, "DEFAULT_HTTP_PROTOCOL", "http")
     current_site = get_current_site(self.request)
     ctx = {
         "user": user,
         "protocol": protocol,
         "current_site": current_site,
     }
     hookset.send_password_change_email([user.email], ctx)
 def send_email(self, user):
     protocol = getattr(settings, "DEFAULT_HTTP_PROTOCOL", "http")
     current_site = get_current_site(self.request)
     ctx = {
         "user": user,
         "protocol": protocol,
         "current_site": current_site,
     }
     hookset.send_password_change_email([user.email], ctx)