Do not store passwords in settings storage

This commit is contained in:
Pavel Djundik 2017-06-03 21:41:21 +03:00
parent b46f92c7d8
commit 22c00aca95

View File

@ -44,10 +44,13 @@ for (var i in options) {
} }
settings.on("change", "input, select, textarea", function() { settings.on("change", "input, select, textarea", function() {
var self = $(this); const self = $(this);
var name = self.attr("name"); const type = self.attr("type");
const name = self.attr("name");
if (self.attr("type") === "checkbox") { if (type === "password") {
return;
} else if (type === "checkbox") {
options[name] = self.prop("checked"); options[name] = self.prop("checked");
} else { } else {
options[name] = self.val(); options[name] = self.val();