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 @@
{{_("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 }}