summaryrefslogtreecommitdiff
path: root/httemplate/elements/validate_password.html
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2016-02-08 16:09:28 -0800
committerMark Wells <mark@freeside.biz>2016-02-08 16:09:28 -0800
commit7e39ac20af1070bd6521f6199b043abf2afa73d7 (patch)
tree6b6b2fdf46a1da084badb979d88b0d337f42048f /httemplate/elements/validate_password.html
parent460d06a996538bc1db22db8d1d8029c7bd9e6d0c (diff)
make password-insecure option work when adding a new svc_acct, #40236
Diffstat (limited to 'httemplate/elements/validate_password.html')
-rw-r--r--httemplate/elements/validate_password.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/httemplate/elements/validate_password.html b/httemplate/elements/validate_password.html
index a488c4f16..f067ad8fc 100644
--- a/httemplate/elements/validate_password.html
+++ b/httemplate/elements/validate_password.html
@@ -5,8 +5,9 @@ To validate passwords via javascript/xmlhttp:
<INPUT ID="password_field" TYPE="text">
<DIV ID="password_field_result">
<& '/elements/validate_password.html',
- fieldid => 'password_field',
- svcnum => $svcnum
+ fieldid => 'password_field',
+ svcnum => $svcnum,
+ pkgnum => $pkgnum, # used if the service doesn't exist yet
&>
The ID of the input field can be anything; the ID of the DIV in which to display results
@@ -27,7 +28,10 @@ function add_password_validation (fieldid) {
var resultfield = document.getElementById(fieldid);
if (this.value) {
resultfield.innerHTML = '<SPAN STYLE="color: blue;">Validating password...</SPAN>';
- validate_password('fieldid',fieldid,'svcnum','<% $opt{'svcnum'} %>','password',this.value,
+ validate_password('fieldid',fieldid,
+ 'svcnum',<% $opt{'svcnum'} |js_string %>,
+ 'pkgnum',<% $opt{'pkgnum'} |js_string %>,
+ 'password',this.value,
function (result) {
result = JSON.parse(result);
var resultfield = document.getElementById(result.fieldid);