ispCP - Board - Support
[HowTo] Password Changer Roundcube 0.3 Stable - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Contributions Area (/forum-40.html)
+--- Forum: Howtos (/forum-41.html)
+--- Thread: [HowTo] Password Changer Roundcube 0.3 Stable (/thread-7816.html)

Pages: 1 2 3 4 5 6 7 8 9


RE: [HowTo] Password Changer Roundcube 0.3 Stable - Dylan - 05-04-2010 07:50 AM

I find the solution:
Replace this:
Code:
if (!$db->is_error()) {
        if ($db->affected_rows($res) == 1)
        require('../../include/ispcp-functions.php');
        send_request();
        return PASSWORD_SUCCESS; // This is the good case: 1 row updated
    }
to this:
Code:
if (!$db->is_error()) {
        if ($db->affected_rows($res) == 1) {
        require('../../include/ispcp-functions.php');
        send_request();
        return PASSWORD_SUCCESS; // This is the good case: 1 row updated
        }
    }
And it's work perfect! Smile


RE: [HowTo] Password Changer Roundcube 0.3 Stable - Knut - 05-04-2010 02:50 PM

Hmm... i see no difference ?!?


Knut


RE: [HowTo] Password Changer Roundcube 0.3 Stable - TheCry - 05-04-2010 04:18 PM

@Dylan
Thank...I will add this to the code...

@Knut
There is a difference!!!
Code:
if ($db->affected_rows($res) == 1){

}



RE: [HowTo] Password Changer Roundcube 0.3 Stable - Speedysurf - 05-06-2010 07:55 AM

Hello,

i can not change my password with the plugin. I use Roundcube 0.3.1, Courier-imap and the file ispcp_pw_changer_courier.
If i change the password in the interface ist all ok. But the next login failed. The old password failed, too. Database privilges are ok.


RE: [HowTo] Password Changer Roundcube 0.3 Stable - TheCry - 05-06-2010 08:09 PM

Any Logs?
Look in the database "domain" on the user status.
Did you make the change of my last post?


RE: [HowTo] Password Changer Roundcube 0.3 Stable - Speedysurf - 05-06-2010 09:21 PM

No Log messages.
The
Code:
{ }
have i insert. ispcp is 1.05.
db status is in mail_users "ok". in table domain is no user_status.


RE: [HowTo] Password Changer Roundcube 0.3 Stable - TheCry - 05-06-2010 09:57 PM

Look into the file sql.php under drivers...
Then replace the old code
Code:
if (!$db->is_error()) {
        if ($db->affected_rows($res) == 1)
        require('../../include/ispcp-functions.php');
        send_request();
        return PASSWORD_SUCCESS; // This is the good case: 1 row updated
    }

with

Code:
if (!$db->is_error()) {
        if ($db->affected_rows($res) == 1) {
        require('../../include/ispcp-functions.php');
        send_request();
        return PASSWORD_SUCCESS; // This is the good case: 1 row updated
        }
    }



RE: [HowTo] Password Changer Roundcube 0.3 Stable - Speedysurf - 05-06-2010 10:17 PM

This change i have. But with this {} its not work.
I can't login after change the pw with the new or old.


RE: [HowTo] Password Changer Roundcube 0.3 Stable - TheCry - 05-06-2010 11:37 PM

Did you insert the keys inside the config.inc.php
Code:
$rcmail_config['ispcp_db_pass_key'] = '';
$rcmail_config['ispcp_db_pass_iv'] = '';
If you use the pw changer and the old and the new pass doesn't work, this can be the problem!


RE: [HowTo] Password Changer Roundcube 0.3 Stable - Speedysurf - 05-06-2010 11:53 PM

Thank you. Now change the password and i can login.
I have the key check and change this line
Code:
require('../../include/ispcp-functions.php');
in
Code:
require('/var/www/ispcp/gui/include/ispcp-functions.php');

Now works!