Roundcube Community Forum

 

Pretty "Change Password" patch/module for v0.1RC1(07-7-3), +cPanel, +md5

Started by oslad, June 30, 2006, 10:51:23 PM

Previous topic - Next topic

FatJonny

No it doesnt yet. But I know the author is working on an RC1 compatible version. I'm eagerly waiting for it's release :D

SKaero

Same here, its a very good plug in to have, for any one giving out email accounts. ;D

Julien

Hi,
Here comes an updated version working with RC1 : http://blog.julienwadin.be/index.php/2007/05/26/72-modification-du-password-email-dans-roundcube

Sory, its written in French, but you've the filenames and the modifications you've to do in each of them.

You can contact me for any questions by PM !

Have fun !


kalimati

Thanks for posting the link, but the Labels and Messages in in French. I hope some will translate them into English.


Julien

+$labels['changepasswd'] = 'Password';
+$labels['curpasswd'] = 'Current password';
+$labels['newpasswd'] = 'New password';
+$labels['confpasswd'] = 'Again';

+$messages['nopassword'] = 'Please choose a new password !';
+$messages['passwordinconsistency'] = 'New password and its confirmation do not match';
+$messages['badpassword'] = 'Current password looks like to be bad';
+$messages['passwordmodified'] = 'Password successfully changed !';

rockwilda

@Julien: Its possible to make a patch-file for this patch?

kalimati


Julien

Quote from: rockwilda @Julien: Its possible to make a patch-file for this patch?

Yes. You want an archive containing all the modified files ?

As I said, you should probably have to customise the password.inc file, regarding your own mail server...

wshamroukh

i have done what is said in the link provided by Julien but still i can't get the change password tab in the personal settings??
By the way i have the RC1 of round cube?? is there something messing?

Julien

Quote from: wshamroukh i have done what is said in the link provided by Julien but still i can't get the change password tab in the personal settings??
By the way i have the RC1 of round cube?? is there something messing?



Oups, I've updated the link
A file was missing in the list. I've added it at the end of the page
Sory and thanks for your feedback

kalimati

No, I am not able to get it functioning. On entering the Current Password and New Passowrd it responds with "Current password looks like to be bad". I don't know if that can be corrected by the server specific customisation that Julien has talked of. I am on BlueHost.com and I wonder what change that would mean.

Julien

You have to customize the following lines
I'm not sure that you've the same system. I don't now how BlueHost is working...
Were are your password stocked ?

+function rcmail_save_passwd($curpassword, $newpassword){
+   global $DB, $CONFIG, $OUTPUT;
+      
+   $DB->query('select password from postfix.mailbox where username=\''.$_SESSION['username'].'\'');
+   $row = $DB->fetch_assoc();
+   $actualCryptedPassword = md5($curpassword);
+   
+   if ($actualCryptedPassword != $row['password'])
+      return false;
+   else {//ok, we can proceed
+      $DB->query('update postfix.mailbox set password=\''.md5($newpassword).'\',modified=NOW() where username=\''.$_SESSION['username'].'\'');
+      if (!$DB->is_error()) {
+         $_SESSION['password'] = encrypt_passwd($newpassword); //save the new password in the session
+        return true;
+      } else
+        return false;
+         
+   }

kalimati

On BlueHost, we change password through the CPanel. Does that indicate anything to you about where it could be stored?

Julien

You should read this thread, whose talking about Cpanel password changing : http://roundcubeforum.net/forum/index.php?topic=711.0
Look their password.inc how it's done, then you copy/paste :-)

oslad

Hi, Everyone!

The Pretty "Change Password" patch update to v0.1RC1(07-7-3), add cPanel, md5 and more!

Go to here!