summaryrefslogtreecommitdiff
path: root/httemplate/elements/validate_password.html
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2016-02-09 10:56:13 -0800
committerMark Wells <mark@freeside.biz>2016-02-09 10:56:13 -0800
commit776b6c8e2c064b42b89e22e2d5d01afb65dd8bb3 (patch)
treeee86f8ad92c3573880258c645a5b9ea9763cb4e2 /httemplate/elements/validate_password.html
parent9d0796956b83a47a3258e1d388289f6b59f7444d (diff)
Revert "make password-insecure option work when adding a new svc_acct, #40236"
This reverts commit 9d0796956b83a47a3258e1d388289f6b59f7444d. - password-insecure option is 3.x only.
Diffstat (limited to 'httemplate/elements/validate_password.html')
-rw-r--r--httemplate/elements/validate_password.html10
1 files changed, 3 insertions, 7 deletions
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:
<INPUT ID="password_field" TYPE="text">
<DIV ID="password_field_result">
<& '/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 = '<SPAN STYLE="color: blue;">Validating password...</SPAN>';
- 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);