home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1999 March B
/
SCO_CASTOR4RRT.iso
/
nsfast
/
root.9
/
usr
/
ns-home
/
extras
/
database
/
changepw.htm
/
changepw
Wrap
Text File
|
1998-08-19
|
2KB
|
60 lines
<!-- changepw.html - Sample form to allow users to change their own -->
<!-- passwords. Uses a hidden form element to show -->
<!-- which database to manipulate. Remember that -->
<!-- the database must be writable by the user the -->
<!-- server is running as. Remember also that when -->
<!-- you list the database, you should just list -->
<!-- the directory itself (such as default, not -->
<!-- default/Users.db.) -->
<!-- -->
<!-- If you want the program to get the user name -->
<!-- from the environment instead of from a form -->
<!-- element, delete the form element and it should -->
<!-- use the REMOTE_USER environment variable -->
<!-- instead. -->
<hr size=4>
<h1 align=center>Change user password</h1>
<hr size=4>
<h2 align=center>What can I do with this form?</h2>
<p>You can use this form to change your password on this server. You will
need to enter your old password for verification.</p>
<hr size=3>
<form method="POST" action="changepw.cgi">
<!-- Change this value to determine which database to look in. You can give -->
<!-- a relative path from the current directory or a full path. -->
<!-- Remember, ONLY list the directory of the database, such as -->
<!-- /usr/ns-home/authdb/default, NOT /usr/ns-home/authdb/default/Users.db -->
<input type=hidden name=database value="/usr/ns-home/authdb/default">
<h3 align=center>Username</h3>
<p>Enter your user name below.</p>
<pre>Username: <INPUT type=text name=user value="" size=40></pre>
<hr>
<h3 align=center>Old password</h3>
<p>Enter your old password below, for verification.</p>
<pre>Old password: <input type=password name=old_pw size=25 value=""></pre>
<hr>
<h3 align=center>New password</h3>
<p>Enter your new password twice - be sure there were no spelling mistakes.</p>
<pre>New password: <input type=password name=new_pw1 size=25 value="">
New password (again): <input type=password name=new_pw2 size=25 value=""></pre>
<hr size=3>
<center>
<input type=submit value="Change my password">
<input type=reset value="Restore defaults">
</center>
<hr size=3>
</form>