Re: POP3 Container for Auth

From: Date: Thu, 30 Jan 2003 09:56:50 +0000
Subject: Re: POP3 Container for Auth
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-12839@lists.php.net to get a copy of this message
Hi, The IMAP container is based on the LDAP container which also has this code. I'm not sure why the file container does not need it. It does seem less elegent to set the activeUser in the container classes. Maybe that could be moved to the Auth class. The function fetchdata can just return true or false and based on that the activeUser can be set to empty (false) or the username (true). Jeroen Yavor Shahpasov wrote: > if ($conn) { > $this->activeUser = $username; > @imap_close($conn); > return true; > } else { > $this->activeUser = ''; > return false; > } > > I noticed this in the IMAP container, is it nesesary or is it handled by > the Auth class, am sure there was no such thing in the file container > which I used for a template, BTW I'll make the update and commit to CVS > since I have you OK. I'll also update the package.xml > > Yavor > > Martin Jansen wrote: > > >On Wed Jan 29, 2003 at 06:2757PM +0200, Yavor Shahpasov wrote: > > > > > >> // {{{ listUsers() > >> > >> function listUsers() > >> { > >> return(false); > >> } > >> > >> > > > >Just an update to my previous mail: This method (and all the other ones > >currently just returning false should return AUTH_METHOD_NOT_SUPPORTED > >instead. > > > > > > > > -- > PEAR Development Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.pear.dev (#12839) next »