Ver código fonte

Added reset password button to User doctype (#3089)

version-14
Neil Trini Lasrado 8 anos atrás
committed by Rushabh Mehta
pai
commit
c531b12547
1 arquivos alterados com 10 adições e 0 exclusões
  1. +10
    -0
      frappe/core/doctype/user/user.js

+ 10
- 0
frappe/core/doctype/user/user.js Ver arquivo

@@ -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();


Carregando…
Cancelar
Salvar