From 4ba32cd92ace1fa0876e32c3686a4937e1c49433 Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Fri, 14 Sep 2018 14:02:05 +0200 Subject: [PATCH] configuration password param is masked --- frontend-js/src/main/js/gui/admin/ConfigurationAdminPanel.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend-js/src/main/js/gui/admin/ConfigurationAdminPanel.js b/frontend-js/src/main/js/gui/admin/ConfigurationAdminPanel.js index 17657ccd8a..912aaa73f4 100644 --- a/frontend-js/src/main/js/gui/admin/ConfigurationAdminPanel.js +++ b/frontend-js/src/main/js/gui/admin/ConfigurationAdminPanel.js @@ -198,9 +198,10 @@ ConfigurationAdminPanel.prototype.optionToTableRow = function (option) { option.getValueType() === "INTEGER" || option.getValueType() === "DOUBLE" || option.getValueType() === "EMAIL" || - option.getValueType() === "PASSWORD" || option.getValueType() === "URL") { editOption = "<input name='edit-" + option.getType() + "' value='" + value + "'/>"; + } else if (option.getValueType() === "PASSWORD") { + editOption = "<input type='password' name='edit-" + option.getType() + "' value='" + value + "'/>"; } else if (option.getValueType() === "TEXT") { editOption = "<textarea name='edit-" + option.getType() + "'>" + xss(value) + "</textarea>"; } else if (option.getValueType() === "BOOLEAN") { -- GitLab