Skip to content

Commit

Permalink
chore(saas): update the body of login e-mail
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmoysrt committed Nov 21, 2024
1 parent 40647f9 commit 685d380
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions press/saas/doctype/product_trial/product_trial.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,15 +350,11 @@ def send_verification_mail_for_login(email: str, product: str, code: str):
print(f"Code : {code}")
print()
return
product_trial = frappe.get_doc("Product Trial", product)
product_trial: ProductTrial = frappe.get_doc("Product Trial", product)
sender = ""
subject = (
product_trial.email_subject.format(otp=code)
if product_trial.email_subject
else "Verify your email for Frappe"
)
subject = f"{code} - Verification Code for {product_trial.title} Login"
args = {
"header_content": product_trial.email_header_content or "",
"header_content": f"<p>You have requested a verification code to login to your {product_trial.title} site. The code is valid for 5 minutes.</p>",
"otp": code,
}
if product_trial.email_full_logo:
Expand All @@ -370,7 +366,7 @@ def send_verification_mail_for_login(email: str, product: str, code: str):
sender=sender,
recipients=email,
subject=subject,
template="saas_verify_account",
template="product_trial_verify_account",
args=args,
now=True,
)

0 comments on commit 685d380

Please sign in to comment.