Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: crayon on May 17, 2012, 04:08:29 AM

Title: Change Password Success But Not Working on Login Page
Post by: crayon on May 17, 2012, 04:08:29 AM
Hello,

I have installed roundcube 0.7.2 success, and I have enabled password plugin with cpanel driver.
I reset password and have successfully confirm changed.
when I login with new password in login page, the password is incorrect. and old password is corrected.

PHow to fix this?? Please help.


Thank you

Regards
crayon




Title: Re: Change Password Success But Not Working on Login Page
Post by: SKaero on May 17, 2012, 04:21:06 AM
Did you setup the cPanel options in the password plugin configuration file?
Title: Re: Change Password Success But Not Working on Login Page
Post by: crayon on May 17, 2012, 04:46:52 AM
Yes I have config like bellow:

$rcmail_config['password_driver'] = 'cpanel';


// cPanel Driver options
// --------------------------
// The cPanel Host name
$rcmail_config['password_cpanel_host'] = 'mydomain.com';

// The cPanel admin username
$rcmail_config['password_cpanel_username'] = 'my-cpanel-user';

// The cPanel admin password
$rcmail_config['password_cpanel_password'] = 'my-cpanel-password';

// The cPanel port to use
$rcmail_config['password_cpanel_port'] = 2096;

// Using ssl for cPanel connections?
$rcmail_config['password_cpanel_ssl'] = true;

// The cPanel theme in use
$rcmail_config['password_cpanel_theme'] = 'x3';



and in /config/main.inc.php
$rcmail_config['plugins'] = array('password');

Please advice.

Thank you for your help.


Regards,
crayon
Title: Re: Change Password Success But Not Working on Login Page
Post by: SKaero on May 17, 2012, 05:41:07 AM
Is your cPanel in English?
Title: Re: Change Password Success But Not Working on Login Page
Post by: crayon on May 17, 2012, 05:47:02 AM
Yes.. we using english
Title: Re: Change Password Success But Not Working on Login Page
Post by: SKaero on May 17, 2012, 06:09:32 AM
Ok so to confirm you setup the cPanel driver, cPanel is set to english and when you save the password it says it saved successfully but the password hasn't changed?
Title: Re: Change Password Success But Not Working on Login Page
Post by: crayon on May 17, 2012, 06:18:58 AM
yes, saved successfully but the password hasn't changed

Regards,
crayon
Title: Re: Change Password Success But Not Working on Login Page
Post by: SKaero on May 17, 2012, 07:03:30 AM
OK in the file <RC root>/plugins/password/drivers/cpanel.php find the following:
$response = $this->HTTP->getData('mail/dopasswdpop.html', $data);

Add add after it:
die($response);

Then change the password and post what it returns.
Title: Re: Change Password Success But Not Working on Login Page
Post by: crayon on May 22, 2012, 04:39:43 AM
Dear,
I have getting error :
HTTP/1.1 200 OK Server: cpsrvd/11.32.2.25 Connection: close Date: Tue, 22 May 2012 08:30:52 GMT Last-Modified: Fri, 18 May 2012 07:44:36 GMT Content-type: text/html; charset="utf-8" Content-length: 1803 Connection: close

function setPassword($password)
{
$data['email'] = $this->email;
$data['domain'] = $this->domain;
$data['password'] = $password;
$response = $this->HTTP->getData('mail/dopasswdpop.html', $data);
                die($response);
if(strpos($response, 'success') && !strpos($response, 'failure'))
{
return true;
}
return false;
}