summaryrefslogtreecommitdiff
path: root/fs_selfservice/FS-SelfService/cgi/process_forgot_password.html
blob: da6fc8d29b3fab4c9f9f5a91e7cd7d9e126697da (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<HTML>
  <HEAD>
    <TITLE>Reset password</TITLE>
    <%= $head %>
  </HEAD>
  <BODY BGCOLOR="<%= $body_bgcolor || '#eeeeee' %>">
  <%= $body_header %>

<FONT SIZE=5>Reset password</FONT><BR><BR>
<FONT SIZE="+1" COLOR="#ff0000"><%= $error %></FONT>

<%= $selfurl =~ s/\?.*//; ''; %>
<FORM ACTION="<%= $selfurl %>" METHOD=POST>
<INPUT TYPE="hidden" NAME="action" VALUE="do_process_forgot_password">
<INPUT TYPE="hidden" NAME="session_id" VALUE="<%= $session_id %>">
<INPUT TYPE="hidden" NAME="agentnum" VALUE="<%= $agentnum %>">

<DIV STYLE="background: <%= $box_bgcolor || '#c0c0c0' %>">
<TABLE BGCOLOR="<%= $box_bgcolor || '#c0c0c0' %>" BORDER=0 CELLSPACING=2 CELLPADDING=0>

<%= if (!$error) {

  $OUT .= <<'END';

  <TR>
    <TH ALIGN="right">New password: </TH>
    <TD>
      <INPUT ID="new_password" TYPE="password" NAME="new_password" SIZE="18">
    </TD>
    <TD>
      <SPAN ID="new_password_result"></SPAN>
      <SCRIPT SRC="send_xmlhttp.js"></SCRIPT>
      <SCRIPT SRC="add_password_validation.js"></SCRIPT>
      <SCRIPT>
      add_password_validation('new_password',true);
      </SCRIPT>
    </TD>
  </TR>

  <TR>
    <TH ALIGN="right">Re-enter new password: </TH>
    <TD><INPUT TYPE="password" NAME="new_password2" SIZE="18"></TD>
    <TD></TD>
  </TR>
  <TR>
    <TD COLSPAN="2" ALIGN="center"><INPUT TYPE="submit" VALUE="Change password"></TD>
    <TD></TD>
  </TR>
END

  }
%>

</TABLE>
</DIV>
</FORM>

<%= $body_footer %>