Browse Source

correct field name and field value

version-14
Sunny 7 years ago
parent
commit
cfd35d414b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      frappe/core/doctype/system_settings/system_settings.js

+ 2
- 2
frappe/core/doctype/system_settings/system_settings.js View File

@@ -22,7 +22,7 @@ frappe.ui.form.on("System Settings", "enable_password_policy", function(frm) {
}); });


frappe.ui.form.on("System Settings", "enable_two_factor_auth", function(frm) { frappe.ui.form.on("System Settings", "enable_two_factor_auth", function(frm) {
if(frm.doc.enable_password_policy == 0){
frm.set_value("bypass_2fa_for_retricted_ip_users", "");
if(frm.doc.enable_two_factor_auth == 0){
frm.set_value("bypass_2fa_for_retricted_ip_users", 0);
} }
}); });

Loading…
Cancel
Save