|
From: Bill M. <bm...@ud...> - 2008-02-06 15:58:51
|
Hi all, I have written a module to allow anonymous account activation or
password recovery (generalizing it to Anonymous Password Change (APC)).
The module generates a uuid and then allows anonymous access through that
uuid to change account passwords. I want to submit it, but unfortunately I
had to make some changes outside the module (i.e.
virtual-server-lib-funcs.pl) to make it go.
We wanted the choice of using the module to be on a per user creation
basis, so I had to add a checkbox to edit_user.cgi that sets a flag in the
user hash. I also added some lines in create_user (in
virtual-server-lib-func.pl) to check for the flag and call the module
library to create a uuid. Then it adds the uuid to the hash. I also had to
change send_template_email to check for the uuid in the hash and set a
variable ${APCLINK} in the outgoing template email.
Does anyone have any ideas on how to separate this from virtualmin so it
can just be a plugin? Although the code I wrote checks for the existence
of the plugin so it could technically be distributed I doubt that it would
warrant being incorporated in the virtualmin 'core'.
|