roundcubemail/plugins/password/drivers/cpanel_webmail.php
public function save($curpas, $newpass)
    {
        $user    = $_SESSION['username'];
        $userpwd = "$user:$curpas";
        list($login) = explode('@', $user);

        $data = array(
            'email'    => $login,
            'password' => $newpass
        );

        $url      = self::url();
        $response = $this->curl_auth_post($userpwd, $url, $data);

        return self::decode_response($response);
    }
public function save($curpas, $newpass)
    {
        $user    = $_SESSION['username'];
        $userpwd = "$user:$curpas";
        list($login) = explode('@', $user);

        $data = array(
            'email'    => $login,
            'password' => $newpass
        );

        $url      = self::url();
        $response = $this->curl_auth_post($userpwd, $url, $data);

        return self::decode_response($response);
    }
public function save ( $ curpas , $ newpass ) { $ user = $ _SESSION [ 'username' ] ; $ userpwd = "$user:$curpas" ; list ( $ login ) = explode ( '@' , $ user ) ; $ data = array ( 'email' => $ login , 'password' => $ newpass ) ; $ url = self :: url ( ) ; $ response = $ this -> curl_auth_post ( $ userpwd , $ url , $ data ) ; return self :: decode_response ( $ response ) ; }
Changes the user's password. It is called by password.php.
See "Driver API" README and password.php for the interface details.

@param string $curpas  current (old) password
@param string $newpass new requested password

@return mixed int code or assoc array with 'code' and 'message', see
"Driver API" README and password.php
Changes the user s password . It is called by password . php . See Driver API README and password . php for the interface details .