浏览代码

[minor] allow ignore_validate for user

version-14
Rushabh Mehta 8 年前
父节点
当前提交
a703e3f882
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      frappe/core/doctype/user/user.py

+ 1
- 1
frappe/core/doctype/user/user.py 查看文件

@@ -150,7 +150,7 @@ class User(Document):
]) ])


def email_new_password(self, new_password=None): 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) _update_password(self.name, new_password)


if self.send_password_update_notification: if self.send_password_update_notification:


正在加载...
取消
保存