Author Topic: Change Password Success But Not Working on Login Page  (Read 5129 times)

Offline crayon

  • Newbie
  • *
  • Posts: 5
Change Password Success But Not Working on Login Page
« 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
 

 


Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Change Password Success But Not Working on Login Page
« Reply #1 on: May 17, 2012, 04:21:06 AM »
Did you setup the cPanel options in the password plugin configuration file?

Offline crayon

  • Newbie
  • *
  • Posts: 5
Re: Change Password Success But Not Working on Login Page
« Reply #2 on: May 17, 2012, 04:46:52 AM »
Yes I have config like bellow:

Code: [Select]
$rcmail_config['password_driver'] = 'cpanel';

Code: [Select]
// 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
Code: [Select]
$rcmail_config['plugins'] = array('password');
Please advice.

Thank you for your help.


Regards,
crayon

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Change Password Success But Not Working on Login Page
« Reply #3 on: May 17, 2012, 05:41:07 AM »
Is your cPanel in English?

Offline crayon

  • Newbie
  • *
  • Posts: 5
Re: Change Password Success But Not Working on Login Page
« Reply #4 on: May 17, 2012, 05:47:02 AM »
Yes.. we using english

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Change Password Success But Not Working on Login Page
« Reply #5 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?

Offline crayon

  • Newbie
  • *
  • Posts: 5
Re: Change Password Success But Not Working on Login Page
« Reply #6 on: May 17, 2012, 06:18:58 AM »
yes, saved successfully but the password hasn't changed

Regards,
crayon

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Change Password Success But Not Working on Login Page
« Reply #7 on: May 17, 2012, 07:03:30 AM »
OK in the file <RC root>/plugins/password/drivers/cpanel.php find the following:
Code: [Select]
$response = $this->HTTP->getData('mail/dopasswdpop.html', $data);
Add add after it:
Code: [Select]
die($response);
Then change the password and post what it returns.

Offline crayon

  • Newbie
  • *
  • Posts: 5
Re: Change Password Success But Not Working on Login Page
« Reply #8 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

Code: [Select]
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;
}