Add  Server API method: UserInfo

Add a method to the UserManagerAPI which takes a username and returns a struct of user information (username and display name at this stage).
Done. Password removed, LastConnection added.


On 13/06/14 11:30, Tim Penhey wrote:
>
> In state/api/params/params.go:
>
> > @@ -743,3 +743,21 @@ type EnsureAvailability struct {
> >  	// If this is empty, then the environment's default series is used.
> >  	Series string
> >  }
> > +
> > +type UserInfo struct {
> > +	Username    string    `json:username`
> > +	DisplayName string    `json:display-name`
> > +	CreatedBy   string    `json:created-by`
> > +	DateCreated time.Time `json:date-created`
> > +	Password    string    `json:password,omitempty`
>
> We never send back the password. Probably also want "LastConnection"
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/juju/juju/pull/22/files#r13732758>.
>