From: Andrew Dolgov Date: Thu, 18 May 2006 05:19:40 +0000 (+0100) Subject: validate password in prefs form X-Git-Tag: 1.2.0~94 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=64dc59764acc25f478651836d2a58cc4ed1b6b8a;p=tt-rss.git validate password in prefs form --- diff --git a/backend.php b/backend.php index 051a5f67..a1ddf5b8 100644 --- a/backend.php +++ b/backend.php @@ -3183,7 +3183,7 @@ print ""; - print "
"; + print ""; print ""; print ""; @@ -3202,6 +3202,7 @@ print ""; print "

"; print ""; diff --git a/prefs.js b/prefs.js index bc6e8667..2fc1a117 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; +}

Authentication