|
From: Jamie C. <jca...@we...> - 2008-02-06 18:14:36
|
Hi Bill, If you are implementing this as Virtualmin plugin (with a virtual_feature.pl file), you can have your own input fields added to the mailbox user form by defining the mailbox_inputs function in virtual_feature.pl . This is the recommended method, as it removes the need to modify the core Virtualmin code, and so will continue to work even after an upgrade. For details on writing plugins, go to http://www.virtualmin.com/documentation/ and then to the plugin developer's documentation. - Jamie On 06/Feb/2008 07:58 Bill Moyers wrote .. > 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'. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel |