Author Topic: Pretty "Change Password" patch/module for v0.1RC1(07-7-3), +cPanel, +md5  (Read 209952 times)

Offline FatJonny

  • Jr. Member
  • **
  • Posts: 48
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

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Same here, its a very good plug in to have, for any one giving out email accounts. ;D

Offline Julien

  • Jr. Member
  • **
  • Posts: 17
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 !


Offline kalimati

  • Newbie
  • *
  • Posts: 6
Thanks for posting the link, but the Labels and Messages in in French. I hope some will translate them into English.


Offline Julien

  • Jr. Member
  • **
  • Posts: 17
+$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 !';

Offline rockwilda

  • Jr. Member
  • **
  • Posts: 35
@Julien: Its possible to make a patch-file for this patch?

Offline kalimati

  • Newbie
  • *
  • Posts: 6
Julien, Thanks for translating the Labels and Messages.

Offline Julien

  • Jr. Member
  • **
  • Posts: 17
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...

Offline wshamroukh

  • Newbie
  • *
  • Posts: 6
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?

Offline Julien

  • Jr. Member
  • **
  • Posts: 17
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

Offline kalimati

  • Newbie
  • *
  • Posts: 6
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.

Offline Julien

  • Jr. Member
  • **
  • Posts: 17
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;
+         
+   }

Offline kalimati

  • Newbie
  • *
  • Posts: 6
On BlueHost, we change password through the CPanel. Does that indicate anything to you about where it could be stored?

Offline Julien

  • Jr. Member
  • **
  • Posts: 17
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

  • Guest
Hi, Everyone!

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

Go to here!