From aee558a4611d323d501420e435bbbdbb68c275ca Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 18 Nov 2015 13:05:56 +0530 Subject: [PATCH] [minor] show site url in new user email --- frappe/core/doctype/user/user.py | 2 +- frappe/templates/emails/new_user.html | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/frappe/core/doctype/user/user.py b/frappe/core/doctype/user/user.py index c2dda01e4e..6f2fef5705 100644 --- a/frappe/core/doctype/user/user.py +++ b/frappe/core/doctype/user/user.py @@ -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""" diff --git a/frappe/templates/emails/new_user.html b/frappe/templates/emails/new_user.html index 6b4123af76..9eae7c5ee1 100644 --- a/frappe/templates/emails/new_user.html +++ b/frappe/templates/emails/new_user.html @@ -1,10 +1,12 @@

{{ title }}

{{_("Dear")}} {{ first_name }}{% if last_name %} {{ last_name}}{% endif %},

-

{{_("A new account has been created for you")}}.

+

{{_("A new account has been created for you at {0}").format(site_url)}}.

{{_("Your login id is")}}: {{ user }}

{{_("Click on the link below to complete your registration and set a new password")}}.

{{_("Complete Registration")}}


-

{{_("You can also copy-paste this link in your browser")}} {{ link }}

{{_("Thank you")}},
{{ user_fullname }}

+ +
+

{{_("You can also copy-paste this link in your browser")}} {{ link }}