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 »

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 »

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 »

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