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:
12
prefs.js
12
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user