X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fvalidate_password.html;h=a488c4f16c8f6cce22175c3ab4a4c175890b8844;hb=081638aa4a483577a9c5bc7ac9ea518370cf2381;hp=f067ad8fce4fbc040460d1710148f753a1fb87da;hpb=9d0796956b83a47a3258e1d388289f6b59f7444d;p=freeside.git diff --git a/httemplate/elements/validate_password.html b/httemplate/elements/validate_password.html index f067ad8fc..a488c4f16 100644 --- a/httemplate/elements/validate_password.html +++ b/httemplate/elements/validate_password.html @@ -5,9 +5,8 @@ To validate passwords via javascript/xmlhttp:
<& '/elements/validate_password.html', - fieldid => 'password_field', - svcnum => $svcnum, - pkgnum => $pkgnum, # used if the service doesn't exist yet + fieldid => 'password_field', + svcnum => $svcnum &> The ID of the input field can be anything; the ID of the DIV in which to display results @@ -28,10 +27,7 @@ function add_password_validation (fieldid) { var resultfield = document.getElementById(fieldid); if (this.value) { resultfield.innerHTML = 'Validating password...'; - validate_password('fieldid',fieldid, - 'svcnum',<% $opt{'svcnum'} |js_string %>, - 'pkgnum',<% $opt{'pkgnum'} |js_string %>, - 'password',this.value, + validate_password('fieldid',fieldid,'svcnum','<% $opt{'svcnum'} %>','password',this.value, function (result) { result = JSON.parse(result); var resultfield = document.getElementById(result.fieldid);