summaryrefslogtreecommitdiff
path: root/httemplate/elements/validate_password.html
blob: 6aada2fee54f3d9ba16d1dc1132282c40fdaf2b9 (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
<%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
  &>

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>