protected function authLogin($uid, $pwd, $authz = '')
    {
        if (PEAR::isError($error = $this->put('AUTH', 'LOGIN'))) {
            return $error;
        }
        /* 334: Continue authentication request */
        if (PEAR::isError($error = $this->parseResponse(334))) {
            /* 503: Error: already authenticated */
            if ($this->code === 503) {
                return true;
            }
            return $error;
        }

        if (PEAR::isError($error = $this->put(base64_encode($uid)))) {
            return $error;
        }
        /* 334: Continue authentication request */
        if (PEAR::isError($error = $this->parseResponse(334))) {
            return $error;
        }

        if (PEAR::isError($error = $this->put(base64_encode($pwd)))) {
            return $error;
        }

        /* 235: Authentication successful */
        if (PEAR::isError($error = $this->parseResponse(235))) {
            return $error;
        }

        return true;
    }
protected function authLogin($uid, $pwd, $authz = '')
    {
        if (PEAR::isError($error = $this->put('AUTH', 'LOGIN'))) {
            return $error;
        }
        /* 334: Continue authentication request */
        if (PEAR::isError($error = $this->parseResponse(334))) {
            /* 503: Error: already authenticated */
            if ($this->code === 503) {
                return true;
            }
            return $error;
        }

        if (PEAR::isError($error = $this->put(base64_encode($uid)))) {
            return $error;
        }
        /* 334: Continue authentication request */
        if (PEAR::isError($error = $this->parseResponse(334))) {
            return $error;
        }

        if (PEAR::isError($error = $this->put(base64_encode($pwd)))) {
            return $error;
        }

        /* 235: Authentication successful */
        if (PEAR::isError($error = $this->parseResponse(235))) {
            return $error;
        }

        return true;
    }
protected function authLogin ( $ uid , $ pwd , $ authz = '' ) { if ( PEAR :: isError ( $ error = $ this -> put ( 'AUTH' , 'LOGIN' ) ) ) { return $ error ; } /* 334: Continue authentication request */ if ( PEAR :: isError ( $ error = $ this -> parseResponse ( 334 ) ) ) { /* 503: Error: already authenticated */ if ( $ this -> code === 503 ) { return true ; } return $ error ; } if ( PEAR :: isError ( $ error = $ this -> put ( base64_encode ( $ uid ) ) ) ) { return $ error ; } /* 334: Continue authentication request */ if ( PEAR :: isError ( $ error = $ this -> parseResponse ( 334 ) ) ) { return $ error ; } if ( PEAR :: isError ( $ error = $ this -> put ( base64_encode ( $ pwd ) ) ) ) { return $ error ; } /* 235: Authentication successful */ if ( PEAR :: isError ( $ error = $ this -> parseResponse ( 235 ) ) ) { return $ error ; } return true ; }
Authenticates the user using the LOGIN method.

@param string $uid   The userid to authenticate as.
@param string $pwd   The password to authenticate with.
@param string $authz The optional authorization proxy identifier.

@return mixed Returns a PEAR_Error with an error message on any
kind of failure, or true on success.
@since 1.1.0
Authenticates the user using the LOGIN method .