Current time: 11-15-2024, 01:33 PM Hello There, Guest! (LoginRegister)


Post Reply 
RoundCube Guide by Bene
Author Message
mediman Offline


Posts: 2
Joined: Jun 2009
Reputation: 0
Post: #8
RE: RoundCube Guide by Bene
(06-08-2009 03:46 AM)BeNe Wrote:  Sure ?
Please check http://addons.isp-control.net/unofficial/rc_pw.tar.gz

Greez BeNe

I copied safe_prefs.inc from the above tar, but there was a prob: also with correct passwords the pwdfailed error was called, but the password was saved correctly.

I changed the safe_prefs little bit and now it works for me. i changed it also this way that too short passwords produce pwdfailed1 error and password1 != password2 pwdfailed2 error.

here my changes

PHP Code:
// Password MOD
if (isset($_POST['_password']) && !empty($_POST['_password']))


   
$tmpUser $_SESSION['username'];
   
$tmpPWD1 = ($_POST['_password']);
   
$tmpPWD2 = ($_POST['_password2']);

    if(
strlen($tmpPWD2)<6) {    
      
$OUTPUT->show_message('pwdfailed1''error');
      
$passwordError=TRUE;
    }
      if (
$tmpPWD1 != $tmpPWD2) { 
      
$OUTPUT->show_message('pwdfailed2''error');
      
$passwordError=TRUE;
    }

    if(!
$passwordError) {    
      
$encPass encrypt_db_password($tmpPWD2);      
      
mysql_query("UPDATE ispcp.mail_users SET mail_pass='$encPass', status='change' WHERE mail_addr='$tmpUser'") or die (mysql_error());      
      
send_request();
// End Password MOD 

mediman
(This post was last modified: 06-16-2009 08:43 PM by mediman.)
06-16-2009 08:40 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RoundCube Guide by Bene - c0urier - 05-26-2009, 08:47 PM
RE: RoundCube Guide by Bene - BeNe - 05-26-2009, 09:10 PM
RE: RoundCube Guide by Bene - c0urier - 05-26-2009, 09:15 PM
RE: RoundCube Guide by Bene - BeNe - 05-26-2009, 09:19 PM
RE: RoundCube Guide by Bene - c0urier - 05-26-2009, 09:24 PM
RE: RoundCube Guide by Bene - kurdak - 06-08-2009, 03:02 AM
RE: RoundCube Guide by Bene - BeNe - 06-08-2009, 03:46 AM
RE: RoundCube Guide by Bene - mediman - 06-16-2009 08:40 PM
RE: RoundCube Guide by Bene - BeNe - 06-16-2009, 11:06 PM
RE: RoundCube Guide by Bene - mediman - 06-17-2009, 03:36 AM
RE: RoundCube Guide by Bene - mafia - 06-17-2009, 11:44 PM
RE: RoundCube Guide by Bene - BeNe - 06-18-2009, 12:17 AM
RE: RoundCube Guide by Bene - BeNe - 06-24-2009, 06:11 PM
RE: RoundCube Guide by Bene - c0urier - 06-24-2009, 07:37 PM
RE: RoundCube Guide by Bene - BeNe - 06-24-2009, 07:51 PM
RE: RoundCube Guide by Bene - BeNe - 06-24-2009, 09:02 PM
RE: RoundCube Guide by Bene - sisko - 07-10-2009, 05:25 AM
RE: RoundCube Guide by Bene - c0urier - 07-10-2009, 06:03 AM
RE: RoundCube Guide by Bene - sisko - 07-10-2009, 06:44 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)