No data is retrieved from userService.getCurrentUser() in Umbraco V8
Hi there,
I am trying to get current user in the backoffice of Umbraco v8 by using userService.getCurrentUser() angular.js controller, but the function getCurrentUser() and userService are both undefined in my console.
Could anyone please recommend the appropriate method of retrieving the user data?
No data is retrieved from userService.getCurrentUser() in Umbraco V8
Hi there,
I am trying to get current user in the backoffice of Umbraco v8 by using userService.getCurrentUser() angular.js controller, but the function getCurrentUser() and userService are both undefined in my console.
Could anyone please recommend the appropriate method of retrieving the user data?
Any help is much appreciated.
Thanks.
this works for me in my customDashboard
And in the dashboard html I display the username like so
is working on a reply...