frappe.ui.form.on("System Settings", "refresh", function(frm) {
	frappe.call({
		method: "frappe.core.doctype.system_settings.system_settings.load",
		callback: function(data) {
			frappe.all_timezones = data.message.timezones;
			frm.set_df_property("time_zone", "options", frappe.all_timezones);

			$.each(data.message.defaults, function(key, val) {
				frm.set_value(key, val);
				frappe.sys_defaults[key] = val;
			})
		}
	});
});

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

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", "");
	}
});

@@ -759,39 +759,39 @@
 .doc.enable_
-password_policy
+two_factor_auth
  == 0)%7B%0A%09%09fr
@@ -839,18 +839,17 @@
 users%22, 
-%22%22
+0
 );%0A%09%7D%0A%7D)

correct field name and field value