get current logged in user

Discussion for TimeTrex open source community developers.
Post Reply
joshsard
Posts: 55
Joined: Sun Feb 14, 2016 6:09 pm

get current logged in user

Post by joshsard » Sun May 22, 2016 11:21 pm

Hi,

Can u tell me how (via php or javascript code) to get the user object of the person currently logged in in TimeTrex?
Thanks

J.

joshsard
Posts: 55
Joined: Sun Feb 14, 2016 6:09 pm

Re: get current logged in user

Post by joshsard » Tue May 24, 2016 9:07 pm

i found the answer

LocalCacheData.getLoginUser().id
LocalCacheData.getLoginUser().user_name

etc

in javascript

joshsard
Posts: 55
Joined: Sun Feb 14, 2016 6:09 pm

Re: get current logged in user

Post by joshsard » Wed May 25, 2016 11:27 pm

can anyone tell me if there is a php class in TimeTrex that could accomplish the same task as the js code above?

Post Reply