Merge pull request #1204 from thelounge/xpaw/do-not-store-password

Do not store passwords in settings storage
This commit is contained in:
Jérémie Astori 2017-06-08 01:42:06 -04:00 committed by GitHub
commit 2d046748fe
1 changed files with 6 additions and 3 deletions

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();