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
Text File  |  1998-08-19  |  2KB  |  60 lines

  1. <!-- changepw.html - Sample form to allow users to change their own -->
  2. <!--                 passwords.  Uses a hidden form element to show -->
  3. <!--                 which database to manipulate.  Remember that   -->
  4. <!--                 the database must be writable by the user the  -->
  5. <!--                 server is running as.  Remember also that when -->
  6. <!--                 you list the database, you should just list    -->
  7. <!--                 the directory itself (such as default, not     -->
  8. <!--                 default/Users.db.)                             -->
  9. <!--                                                                -->
  10. <!--                 If you want the program to get the user name   -->
  11. <!--                 from the environment instead of from a form    -->
  12. <!--                 element, delete the form element and it should -->
  13. <!--                 use the REMOTE_USER environment variable       -->
  14. <!--                 instead.                                       -->
  15.  
  16. <hr size=4>
  17. <h1 align=center>Change user password</h1>
  18. <hr size=4>
  19.  
  20. <h2 align=center>What can I do with this form?</h2>
  21.  
  22. <p>You can use this form to change your password on this server.  You will
  23. need to enter your old password for verification.</p>
  24.  
  25. <hr size=3>
  26. <form method="POST" action="changepw.cgi">
  27.  
  28. <!-- Change this value to determine which database to look in.  You can give -->
  29. <!-- a relative path from the current directory or a full path.              -->
  30. <!-- Remember, ONLY list the directory of the database, such as              -->
  31. <!-- /usr/ns-home/authdb/default, NOT /usr/ns-home/authdb/default/Users.db   -->
  32. <input type=hidden name=database value="/usr/ns-home/authdb/default">
  33.  
  34. <h3 align=center>Username</h3>
  35. <p>Enter your user name below.</p>
  36. <pre>Username:             <INPUT type=text name=user value="" size=40></pre>
  37.  
  38. <hr>
  39.  
  40. <h3 align=center>Old password</h3>
  41.  
  42. <p>Enter your old password below, for verification.</p>
  43. <pre>Old password:         <input type=password name=old_pw size=25 value=""></pre>
  44.  
  45. <hr>
  46.  
  47. <h3 align=center>New password</h3>
  48.  
  49. <p>Enter your new password twice - be sure there were no spelling mistakes.</p>
  50. <pre>New password:         <input type=password name=new_pw1 size=25 value="">
  51. New password (again): <input type=password name=new_pw2 size=25 value=""></pre>
  52.  
  53. <hr size=3>
  54. <center>
  55. <input type=submit value="Change my password"> 
  56. <input type=reset value="Restore defaults">
  57. </center>
  58. <hr size=3>
  59. </form>
  60.