Merge pull request #154 from fossunited/fix-invite-email

Fix invite email
This commit is contained in:
Jannat Patel
2021-07-19 13:43:36 +05:30
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -45,7 +45,8 @@ class InviteRequest(Document):
subject=subject, subject=subject,
header=[subject, "green"], header=[subject, "green"],
template = "lms_invite_request_approved", template = "lms_invite_request_approved",
args=args) args=args,
now=True)
@frappe.whitelist(allow_guest=True) @frappe.whitelist(allow_guest=True)
def create_invite_request(invite_email): def create_invite_request(invite_email):

View File

@@ -1,6 +1,6 @@
<div> <div>
{% set site_link = "<a href='" + site_url + "'>" + site_name + "</a>" %} {% set site_link = "<a href='" + site_url + "'>" + site_name + "</a>" %}
<p>{{_("Dear {0},").format(full_name)}}</p> <p>{{_("Hi,")}}</p>
<p>{{_("Welcome to {0}!").format(site_name)}}</p> <p>{{_("Welcome to {0}!").format(site_name)}}</p>
<p>Click on the link below to complete your sign up and set a new password</p> <p>Click on the link below to complete your sign up and set a new password</p>
<p style="margin: 15px 0px;"> <p style="margin: 15px 0px;">