[horde] $this->registry['auth']['login'] = 'imp';

Alex Leverington admin at networkessence.net
Sun Nov 11 16:24:46 PST 2001

I thought about that, but then I though, what if the local horde username is 
jon at horde.org instead of plain jon? Then it would try and do getUserFromEmail
('jon at horde.org') - which looks right, but is incorrect, because indeed the 
username is jon at horde.org - it would be kind of redundant I guess. But 
secondly, someone could make their username 'usern at me' or something like that. 
This way, it's kept completely flexible and imp/horde user stuff is sepearated 
overall (which will make future things easier).


Quoting Jon Parise <jon at horde.org>:

> On Sun, Nov 11, 2001 at 05:13:33PM -0600, Alex Leverington wrote:
> > I'm working with whups right now. Whups need to validate/make use of users
> > whether they are horde users, imp users, or local whups users. If the users
> > are from imp, their usernames will be user at exmample.com instead of just 
> > plain 'user' (if $this->registry['auth']['login'] = 'imp'; is not set, then
> > the user can be 'user'). Nonetheless, in whups, if
> $this->registry['auth']
> > ['login'] = 'imp'; has been set, I want to use $backend->getUserFromEmail
> > (Auth::getAuth()), else if it's not, then Auth::getAuth will be used. This
> is 
> > needed for three things. The ticket summary page, making changes to
> tickets, 
> > and the assignment backend.
> I suppose you could just look for the '@' in the string to
> determine whether the name comes in the form of an email address.
> -- 
> Jon Parise (jon at csh.rit.edu)  .  Information Technology (2001)
> http://www.csh.rit.edu/~jon/  :  Computer Science House Member
> -- 
> Horde mailing list: http://horde.org/horde/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org

More information about the horde mailing list