RoundCube Webmail Forum  

Go Back   RoundCube Webmail Forum > Third Party Contributions > Plug-Ins

For more information about the ads and why they're here, please see the FAQ
Reply
  #11  
Old 01-25-2008, 09:53 AM
Registered User
 
Join Date: Nov 2007
Posts: 10
Downloads: 0
Uploads: 0
Default Re: Change password postfix+courier+mysql

Little update: instead of passing $CONFIG['password'] as a parameter for the show function, remove it from function parameters so that the show call looks like this:

$input_password->show()

This is needed to prevent users to erroneously change their password because field has a '1' in it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12  
Old 03-13-2008, 07:22 PM
Registered User
 
Join Date: Aug 2006
Posts: 31
Downloads: 0
Uploads: 0
Default Re: Change password postfix+courier+mysql

Does this work with rc 0.1 stable?

Is there a patch file?

best regards,
Nico
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13  
Old 03-14-2008, 10:19 AM
Registered User
 
Join Date: Nov 2007
Posts: 10
Downloads: 0
Uploads: 0
Default Re: Change password postfix+courier+mysql

I don't know yet, didn't had a chance to test. Will do soon, a release a patch in case
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14  
Old 03-16-2008, 09:54 AM
Registered User
 
Join Date: Nov 2007
Posts: 10
Downloads: 0
Uploads: 0
Default Re: Change password postfix+courier+mysql

I just applied this mod to 0.1stable, and it works flawlessly. I've attached the patch to this post. Let me know if it works, that's my first patch!



Attached Files
File Type: zip roundcube-0.1pwdPatch.zip (949 Bytes, 14 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15  
Old 03-16-2008, 02:42 PM
Registered User
 
Join Date: Aug 2006
Posts: 31
Downloads: 0
Uploads: 0
Default Re: Change password postfix+courier+mysql

Hey thanks for your patch file! But I'm unable to unzip it ... tried it with linux and windows ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16  
Old 03-16-2008, 07:38 PM
Registered User
 
Join Date: Nov 2007
Posts: 10
Downloads: 0
Uploads: 0
Default Re: Change password postfix+courier+mysql

Ouch, try this one, which is .txt but the other one works fine for me :| (WinZip) Please note that you may need to change the query to suit your database, in save_prefs.inc.

I also wrote a short tutorial to help adding this mod to your roundcube installation which can be found here.
Attached Files
File Type: txt roundcube-0.1_pwdPatch.txt (2.0 KB, 15 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17  
Old 03-24-2008, 06:28 PM
Registered User
 
Join Date: Mar 2008
Posts: 5
Downloads: 0
Uploads: 0
Default Re: Change password postfix+courier+mysql

I have a problem with the password, unfortunately for me ENCRYPT not works.

And md5 is not works.

In my database the password is ENCRYPT Function, unfortunately when I modify it the roundcube , that password is not going though already.

Thank You

And sorry about my bad english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #18  
Old 03-24-2008, 06:35 PM
Registered User
 
Join Date: Mar 2008
Posts: 5
Downloads: 0
Uploads: 0
Default Re: Change password postfix+courier+mysql

error log

[24-Mar-2008 20:02:01] PHP Fatal error: Call to undefined function ENCRYPT()
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #19  
Old 03-24-2008, 07:30 PM
Registered User
 
Join Date: Nov 2007
Posts: 10
Downloads: 0
Uploads: 0
Default Re: Change password postfix+courier+mysql

It looks like you have no ENCRYPT function in your sources. Are you sure there's such a function in your code? What are you using to store passwords?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #20  
Old 03-25-2008, 11:21 AM
Registered User
 
Join Date: Mar 2008
Posts: 5
Downloads: 0
Uploads: 0
Default Re: Change password postfix+courier+mysql

program\steps\settings\save_prefs.inc
// Password MOD
password' => isset($_POST['_password']) ? TRUE : FALSE,
// End Password MOD


// Password MOD
if (isset($_POST['_password']))
{
$tmpEncPass = ENCRYPT($_POST['_password'], "");

mysql_query("UPDATE CCC.TableWithPasswordHERE SET password = '".$tmpEncPass."' WHERE username = '".$_SESSION['username']."'")
or die(mysql_error());

$_SESSION['password'] = encrypt_passwd($_POST['_password']);
}
// End Password MOD


program\steps\settings\func.inc

// Password MOD
$field_id = 'rcmfd_password';
$input_password = new textfield(array('name' => '_password', 'id' => $field_id, 'size' => 20));
$out .= sprintf("<tr><td class=\"title\"><label for=\"%s\">%s</label></td><td>%s (empty = unchanged)</td></tr>\n",
$field_id,
rep_specialchars_output(rcube_label('password')),
$input_password->show();
// End Password MOD
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

For more information about the ads and why they're here, please see the FAQ

All times are GMT. The time now is 06:17 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright © 2006-2008 RoundCube Webmail Community