summaryrefslogtreecommitdiff
path: root/prefs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-05-18 06:19:40 +0100
committerAndrew Dolgov <[email protected]>2006-05-18 06:19:40 +0100
commit64dc59764acc25f478651836d2a58cc4ed1b6b8a (patch)
tree1bb063720ebfa3d4ff75ceb149a7685697d5c9e3 /prefs.js
parente5d758e3db48bd8613771d9c139de5017f1d7194 (diff)
validate password in prefs form
Diffstat (limited to 'prefs.js')
-rw-r--r--prefs.js12
1 files changed, 12 insertions, 0 deletions
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;
+}