Userprofile

1. I have added a second call to fetch the info i need for the profile page. I am wondering if this extra info shouldn't be returned from the auth call, because this breaks the current login test.

2. This profile page only works correctly when you log in as root. otherwise, it returns authorized.

3. should there be a separate endpoint to fetch and update the profile? I am currently using /users/
Hi @debonair I think this is the right idea and the right place. Perhaps we can store the user object better though. Instead of storing the individual properties (username, passwordHash, firstname, surname, groups) perhaps we should just store the entire user object.

Then in `getLoggedInUser` we could just return this entire object?

You may have to change the way some the code above this comment for this to work correctly.