Exemplo n.º 1
0
 def send_set_password_link(self):
     token = self.prepare_token("set-password")
     path = reverse("hc-set-password", args=[token])
     ctx = {
         "button_text": "Set Password",
         "button_url": settings.SITE_ROOT + path
     }
     emails.set_password(self.user.email, ctx)
Exemplo n.º 2
0
    def send_set_password_link(self):
        token = str(uuid.uuid4())
        self.token = make_password(token)
        self.save()

        path = reverse("hc-set-password", args=[token])
        ctx = {"set_password_link": settings.SITE_ROOT + path}
        emails.set_password(self.user.email, ctx)
Exemplo n.º 3
0
    def send_set_password_link(self):
        token = str(uuid.uuid4())
        self.token = make_password(token)
        self.save()

        path = reverse("hc-set-password", args=[token])
        ctx = {"set_password_link": settings.SITE_ROOT + path}
        emails.set_password(self.user.email, ctx)
Exemplo n.º 4
0
 def send_set_password_link(self):
     token = self.prepare_token("set-password")
     path = reverse("hc-set-password", args=[token])
     ctx = {
         "button_text": "Set Password",
         "button_url": settings.SITE_ROOT + path
     }
     emails.set_password(self.user.email, ctx)