[minor] allow ignore_validate for user
This commit is contained in:
parent
a703e3f882
commit
051bed78da
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue