Question
How does a user
or administrator change TWiki passwords?
They should be changed periodically, or (as I'm currently experiencing) a user may forget the password.
- TWiki version: 1.11
- Web server: Apache 1.3.x
- Server OS: Solaris
--
RalphBroom - 17 Jan 2001
Answer
This is a problem that anybody will have sooner or later when running Twiki.
After I received several calls for password reset (which meant running through the entire procedure of deleting a line in .htpasswd, deleting the users Main.
topic and asking the user to register again ... ) I wrote my own ResetPassword and ChangePassword extension to Twiki. Even if I am very sure that somebody else already did that job I'd like to give you my solution.
It consists of
| twiki/bin/passwd |
perl script to deal with change and reset of password |
| twiki/data/Main/ChangePassword.txt |
the topic in Main web for change password |
| twiki/data/MainResetPassword.txt |
the topic in Main web for reset password |
| twiki/templates/oopsnotwikiuser.tmpl |
a oops form telling the user that he mistyped(?) his name |
| twiki/templates/oopswrongpassword.tmpl |
a form telling the user that he mistyped his ol password |
| twiki/templates/oopschangepasswd.tmpl |
a form telling the user that change of password succeeded |
| twiki/templates/oopsresetpasswd.tmpl |
a form telling the user how to proceed to get his password reset |
You can find those files attached.
Note: This was my very first perl experience - I did it more or less using cut & paste from the original Twiki scripts - and it was my first CGI as well - so any enhancements are welcome - please let me know ...
-- KlausWriessnegger - 22 Jan 2001
Thanks Klaus for the contribution. I copied this topic over to the Codev web at ChangingTWikiPasswords. It will go into the TWiki core with some modifications.
-- PeterThoeny - 10 Feb 2001