3 # Display the form that allows users to change their passwords at login time
5 $ENV{'MINISERV_INTERNAL'} || die "Can only be called by miniserv.pl";
6 require './web-lib.pl';
9 &header(undef, undef, undef, undef, 1, 1);
12 print "<h3>$text{'password_expired'}</h3><p>\n";
14 print "$text{'password_prefix'}\n";
15 print "<form action=$gconfig{'webprefix'}/password_change.cgi method=post>\n";
16 print "<input type=hidden name=user value='",&html_escape($in{'user'}),"'>\n";
17 print "<input type=hidden name=pam value='",&html_escape($in{'pam'}),"'>\n";
19 print "<table border width=40%>\n";
20 print "<tr $tb> <td><b>$text{'password_header'}</b></td> </tr>\n";
21 print "<tr $cb> <td align=center><table cellpadding=3>\n";
23 print "<tr> <td><b>$text{'password_user'}</b></td>\n";
24 print "<td><tt>",&html_escape($in{'user'}),"</tt></td> </tr>\n";
26 print "<tr> <td><b>$text{'password_old'}</b></td>\n";
27 print "<td><input name=old size=20 type=password></td> </tr>\n";
29 print "<tr> <td><b>$text{'password_new1'}</b></td>\n";
30 print "<td><input name=new1 size=20 type=password></td> </tr>\n";
31 print "<tr> <td><b>$text{'password_new2'}</b></td>\n";
32 print "<td><input name=new2 size=20 type=password></td> </tr>\n";
34 print "<tr> <td colspan=2 align=center><input type=submit ",
35 "value='$text{'password_ok'}'>\n";
36 print "<input type=reset value='$text{'password_clear'}'><br>\n";
37 print "</td> </tr>\n";
38 print "</table></td></tr></table><p>\n";
40 print "</form></center>\n";
41 print "$text{'password_postfix'}\n";