Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

Commit

Permalink
mail templates updated
Browse files Browse the repository at this point in the history
  • Loading branch information
metinorak committed Jul 20, 2019
1 parent adb3451 commit ae1b232
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mailController.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def passwordReset():
sendMail({
"To" : email,
"Subject" : "Password Reset - devSeater",
"Body" : render_template("mail/password-reset-mail.html", siteAddress = SITE_ADDR, email = email, hashCode = hashCode)
"Body" : render_template("mail/password-reset-mail.html", SITE_ADDR = SITE_ADDR, email = email, hashCode = hashCode)
})

else:
Expand Down Expand Up @@ -109,5 +109,5 @@ def sendVerificationEmail(email):
sendMail({
"To" : email,
"Subject" : "Email Verification - devSeater",
"Body" : render_template("mail/email-verification-mail.html", email = email, hashCode = hashCode)
"Body" : render_template("mail/email-verification-mail.html", email = email, hashCode = hashCode, SITE_ADDR = SITE_ADDR)
})
2 changes: 1 addition & 1 deletion templates/mail/email-verification-mail.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h2>Hi member!</h2>
<p>
To verify your email address, please use the link below:
</p>
<a href="{{siteAddress}}/email-verify?email={{email}}&hash={{hashCode}}">Click here to reset your password</a>
<a href="{{SITE_ADDR}}/email-verify?email={{email}}&hash={{hashCode}}">Click here to reset your password</a>

<p>

Expand Down
2 changes: 1 addition & 1 deletion templates/mail/password-reset-mail.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h2>Hi member!</h2>
<p>
Using this link you can reset your password:
</p>
<a href="{{siteAddress}}/password-reset?email={{email}}&hash={{hashCode}}">Click here to reset your password</a>
<a href="{{SITE_ADDR}}/password-reset?email={{email}}&hash={{hashCode}}">Click here to reset your password</a>

<p>
If you have not made such a request, please ignore this email.
Expand Down

0 comments on commit ae1b232

Please sign in to comment.