[minor] show site url in new user email
This commit is contained in:
parent
506d268143
commit
aee558a461
2 changed files with 5 additions and 3 deletions
|
|
@ -164,7 +164,7 @@ class User(Document):
|
|||
link = get_url("/update-password?key=" + key)
|
||||
|
||||
self.send_login_mail(_("Verify Your Account"), "templates/emails/new_user.html",
|
||||
{"link": link})
|
||||
{"link": link, "site_url": get_url()})
|
||||
|
||||
def send_login_mail(self, subject, template, add_args):
|
||||
"""send mail with login details"""
|
||||
|
|
|
|||
|
|
@ -1,10 +1,12 @@
|
|||
<h3>{{ title }}</h3>
|
||||
<p>{{_("Dear")}} {{ first_name }}{% if last_name %} {{ last_name}}{% endif %},</p>
|
||||
<p>{{_("A new account has been created for you")}}.</p>
|
||||
<p>{{_("A new account has been created for you at {0}").format(site_url)}}.</p>
|
||||
<p>{{_("Your login id is")}}: <b>{{ user }}</b>
|
||||
<p>{{_("Click on the link below to complete your registration and set a new password")}}.</p>
|
||||
<p><b><a href="{{ link }}">{{_("Complete Registration")}}</a></b></p>
|
||||
<br>
|
||||
<p>{{_("You can also copy-paste this link in your browser")}} <a href="{{ link }}">{{ link }}</a></p>
|
||||
<p>{{_("Thank you")}},<br>
|
||||
{{ user_fullname }}</p>
|
||||
|
||||
<br>
|
||||
<p style="font-size: 85%;">{{_("You can also copy-paste this link in your browser")}} <a href="{{ link }}">{{ link }}</a></p>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue