diff --git a/backend.php b/backend.php index 051a5f670..a1ddf5b81 100644 --- a/backend.php +++ b/backend.php @@ -3183,7 +3183,7 @@ print ""; - print "
"; print ""; diff --git a/prefs.js b/prefs.js index bc6e8667f..2fc1a117f 100644 --- a/prefs.js +++ b/prefs.js @@ -1448,3 +1448,15 @@ function browserToggleExpand(id) { exception_error("browserExpand", e); } } + +function validateNewPassword(form) { + if (form.OLD_PASSWORD.value == "") { + alert("Current password cannot be blank"); + return false; + } + if (form.NEW_PASSWORD.value == "") { + alert("New password cannot be blank"); + return false; + } + return true; +}