diff --git a/core/doctype/profile/profile.py b/core/doctype/profile/profile.py index f0ee9ffe9e..fc6ce98b93 100644 --- a/core/doctype/profile/profile.py +++ b/core/doctype/profile/profile.py @@ -148,11 +148,12 @@ To login to %(product)s, please go to: Thank you,
%(user_fullname)s """ - self.send_login_mail("Your ERPNext password has been reset", txt, password) + import startup + self.send_login_mail("Your " +startup.product_name + " password has been reset", txt, password) def send_welcome_mail(self, password): """send welcome mail to user with password and login url""" - import startup + txt = """ ## %(company)s @@ -329,4 +330,4 @@ def sign_up(email, full_name): profile.ignore_permissions = True profile.insert() return _("Registration Details Emailed.") - \ No newline at end of file +