Page 1 of 1

get current logged in user

Posted: Sun May 22, 2016 11:21 pm
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.

Re: get current logged in user

Posted: Tue May 24, 2016 9:07 pm
by joshsard
i found the answer

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

etc

in javascript

Re: get current logged in user

Posted: Wed May 25, 2016 11:27 pm
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?