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

Jon Parise jon at horde.org
Sun Nov 11 16:13:56 PST 2001


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




More information about the horde mailing list