![]() |
|
|
|||||||
| For more information about the ads and why they're here, please see the FAQ |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
#11
|
|||
|
|||
|
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. |
|
#12
|
|||
|
|||
|
Does this work with rc 0.1 stable?
Is there a patch file? best regards, Nico |
|
#13
|
|||
|
|||
|
I don't know yet, didn't had a chance to test. Will do soon, a release a patch in case
![]() |
|
#14
|
|||
|
|||
|
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!
|
|
#15
|
|||
|
|||
|
Hey thanks for your patch file! But I'm unable to unzip it ... tried it with linux and windows ...
|
|
#16
|
|||
|
|||
|
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. |
|
#17
|
|||
|
|||
|
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 |
|
#18
|
|||
|
|||
|
error log
[24-Mar-2008 20:02:01] PHP Fatal error: Call to undefined function ENCRYPT() |
|
#19
|
|||
|
|||
|
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?
|
|
#20
|
|||
|
|||
|
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 |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
| For more information about the ads and why they're here, please see the FAQ |