diff --git a/frappe/core/doctype/user/user.py b/frappe/core/doctype/user/user.py index 83008efd01..e233285fa3 100644 --- a/frappe/core/doctype/user/user.py +++ b/frappe/core/doctype/user/user.py @@ -155,7 +155,7 @@ class User(Document): if new_password and not self.flags.in_insert: _update_password(user=self.name, pwd=new_password, logout_all_sessions=self.logout_all_sessions) - if self.send_password_update_notification: + if self.send_password_update_notification and self.enabled: self.password_update_mail(new_password) frappe.msgprint(_("New password emailed"))