diff --git a/domain-server/resources/web/settings/js/settings.js b/domain-server/resources/web/settings/js/settings.js index c5f055bed0..7642a66867 100644 --- a/domain-server/resources/web/settings/js/settings.js +++ b/domain-server/resources/web/settings/js/settings.js @@ -996,6 +996,10 @@ function saveSettings() { if (password && password.length > 0) { formJSON["security"]["http_password"] = sha256_digest(password); } + var verify_password = formJSON["security"]["verify_http_password"]; + if (verify_password && verify_password.length > 0) { + formJSON["security"]["verify_http_password"] = sha256_digest(verify_password); + } } // verify that the password and confirmation match before saving @@ -1010,7 +1014,6 @@ function saveSettings() { bootbox.alert({"message": "Passwords must match!", "title":"Password Error"}); canPost = false; } else { - formJSON["security"]["http_password"] = sha256_digest(password); delete formJSON["security"]["verify_http_password"]; } }