def send_password_reset(user, uid, token): try: email_subject = _('User Management System password reset') confirm_reset_url = "%s%s" % (settings.SITE_URL, reverse('password_reset_confirm', kwargs={'uidb64': uid, 'token': token})) return send_email(user.email, email_subject, 'emails/password_reset.html', { 'user': user, 'confirm_reset_url': confirm_reset_url, }) except Exception: logger.exception("Couldn't send password reset to %s (%d)", user.email, user.id)
def send_password_reset(user, uid, token): try: email_subject = 'onepager password reset' confirm_reset_url = "%s%s" % (settings.SITE_URL, reverse('password_reset_confirm', kwargs={'uidb64': uid, 'token': token})) return send_email(user.email, email_subject, 'emails/password_reset.html', { 'user': user, 'confirm_reset_url': confirm_reset_url, }) except: logger.exception("Couldn't send password reset to %s (%d)", user.email, user.id)
def send_password_reset(user, uid, token): try: email_subject = _("tonis.piip.org password reset") confirm_reset_url = "%s%s" % ( settings.SITE_URL, reverse("password_reset_confirm", kwargs={ "uidb64": uid, "token": token }), ) return send_email( user.email, email_subject, "emails/password_reset.html", { "user": user, "confirm_reset_url": confirm_reset_url }, ) except Exception: logger.exception("Couldn't send password reset to %s (%d)", user.email, user.id)