1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 22:35:57 +00:00

validate password in prefs form

This commit is contained in:
Andrew Dolgov
2006-05-18 06:19:40 +01:00
parent e5d758e3db
commit 64dc59764a
2 changed files with 14 additions and 1 deletions

View File

@@ -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;
}