Could you please consider my hMail password change plugin (attached) as well?
Also please notice the following part of code:
if (!$rcmail->config->get('db_persistent')) {
if ($dsn = $rcmail->config->get('db_dsnw')) {
$rcmail->db = new rcube_mdb2($dsn, '', FALSE);
}
}
I had problems with the default password plugin structure, if database connection is not persistent.
Problems disappeared by establishing a database connection to roundcube database after connecting to hMail database.
Regards, Roland
----- Original Message ----- From: "A.L.E.C" alec@alec.pl To: "RoundCube Dev" dev@lists.roundcube.net Sent: Sunday, June 14, 2009 11:31 AM Subject: [RCD] Password plugin and virtuser plugin ideas
We have a few plugins for password change using different methods for saving new password, but all of them have the same UI. I think it would be better for localization and future maintenance to join them into one plugin with many drivers. We need one function for password change, so we can do this as simple as possible. Let's add drivers/ directory with files sql.php, sasl.php, etc. and config option 'password_driver'. So, everyone just could add his own driver function.
My second idea is to create hooks for rcube_user's email2user and user2email functions. Then we could move current virtuser_* features into 'virtuser' plugin. This plugin should also work as password above with drivers for file, sql, or any callback.
-- Aleksander 'A.L.E.C' Machniak http://alec.pl gg:2275252 LAN Management System Developer http://lms.org.pl Roundcube Webmail Developer http://roundcube.net _______________________________________________ List info: http://lists.roundcube.net/dev/
--- 8< --- detachments --- 8< --- The following attachments have been detached and are available for viewing. http://detached.gigo.com/rc/ng/nfc6f8ra/hmail_password.zip Only click these links if you trust the sender, as well as this message. --- 8< --- detachments --- 8< ---
List info: http://lists.roundcube.net/dev/