[horde] how to determine horde username from a different app

Uttiya Chowdhury chowdhury_uttiya at yahoo.com
Thu Oct 18 12:59:55 UTC 2012


> If what you are after is the horde *username* then this is
> not what you want. You want:
> 
> $horde_username = $GLOBALS['registry']->getAuth();
> 
> Your code will return the logged in Horde user's configured
> email address. This may or may not be populated for all
> logged in users, it is not guaranteed not to change (since
> the user may change their default identity) and, most
> importantly, is entered by the user. I.e., there is nothing
> stopping userone from entering usertwo's email address in
> their identity, making it trivial for userone to look like
> usertwo from Wordpress' point of view.

Thanks for the very important and useful comment. getAuth() it is. 

UC


More information about the horde mailing list