summaryrefslogtreecommitdiff
path: root/httemplate/elements/validate_password.html
blob: 10471d97420d834792b80ab5c46522070abca9b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<%doc>

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
  &>

The ID of the input field can be anything;  the ID of the DIV in which to display results
should be the input id plus '_result'.

</%doc>

<& '/elements/validate_password_js.html', %opt &>

<SCRIPT>
  add_password_validation('<% $opt{'fieldid'} %>', '<% $opt{'submitid'} %>', '<% $opt{'svcnum'} %>', '<% $opt{'contactnum'} %>');
</SCRIPT>

<%init>
my %opt = @_;
</%init>