浏览代码

Added reset password button to User doctype (#3089)

version-14
Neil Trini Lasrado 8 年前
committed by Rushabh Mehta
父节点
当前提交
c531b12547
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. +10
    -0
      frappe/core/doctype/user/user.js

+ 10
- 0
frappe/core/doctype/user/user.js 查看文件

@@ -64,6 +64,16 @@ frappe.ui.form.on('User', {

frm.toggle_display(['sb1', 'sb3', 'modules_access'], true);
}
frm.add_custom_button(__("Reset Password"), function() {
frappe.call({
method: "frappe.core.doctype.user.user.reset_password",
args: {
"user": frm.doc.name
}
})
})

frm.trigger('enabled');

frm.roles_editor && frm.roles_editor.show();


正在加载...
取消
保存