ソースを参照

[minor] cleaned code from user.js

version-14
Rushabh Mehta 8年前
コミット
925e5922eb
1個のファイルの変更1行の追加22行の削除
  1. +1
    -22
      frappe/core/doctype/user/user.js

+ 1
- 22
frappe/core/doctype/user/user.js ファイルの表示

@@ -77,7 +77,7 @@ frappe.ui.form.on('User', {
}
})
})
frm.add_custom_button(__("Reset OTP Secret"), function() {
frappe.call({
method: "frappe.core.doctype.user.user.reset_otp_secret",
@@ -121,27 +121,6 @@ frappe.ui.form.on('User', {
cur_frm.dirty();
}

// frappe.call({
// method: "get_2fa_params",
// doc:frm.doc,
// callback: function(r) {
// if (r.message){
// frm.toggle_display('two_factor_method', r.message.show_method_field == true);
// if (r.message.restrict_method){
// $("select[data-fieldname=two_factor_method] > option").each(function() {
// if ($(this).val() != r.message.restrict_method){
// $(this).attr('disabled','');
// } else {
// $(this).removeAttr('disabled')
// }
// });
//frm.set_df_property('two_factor_method', 'options', [r.message.restrict_method]);
//frm.set_value('two_factor_method',r.message.restrict_method)
//frm.refresh_field('two_factor_method');
// }
// }
// }
// });
},
validate: function(frm) {
if(frm.roles_editor) {


読み込み中…
キャンセル
保存