[minor] allow ignore_validate for user

This commit is contained in:
Rushabh Mehta 2016-09-24 00:16:58 +05:30
parent a703e3f882
commit 051bed78da

View file

@ -193,7 +193,7 @@ class User(Document):
def send_password_notification(self, new_password):
try:
if self.in_insert:
if getattr(self, 'in_insert', False):
if self.name not in STANDARD_USERS:
if new_password:
# new password given, no email required