Do not store passwords in settings storage
This commit is contained in:
parent
b46f92c7d8
commit
22c00aca95
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user