From a703e3f882df4b5c91913b282dac232c17d001cd Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Sat, 24 Sep 2016 00:12:59 +0530 Subject: [PATCH] [minor] allow ignore_validate for user --- frappe/core/doctype/user/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/core/doctype/user/user.py b/frappe/core/doctype/user/user.py index e000dff613..1adc6fa900 100644 --- a/frappe/core/doctype/user/user.py +++ b/frappe/core/doctype/user/user.py @@ -150,7 +150,7 @@ class User(Document): ]) def email_new_password(self, new_password=None): - if new_password and not self.in_insert: + if new_password and not getattr(self, 'in_insert', False): _update_password(self.name, new_password) if self.send_password_update_notification: