EsriEduNL / veldwerk2.0

WebApp to use ArcGIS Online Organization account for student field trips
GNU General Public License v2.0
1 stars 0 forks source link

How to get username of logged-in user? #28

Closed dhunink closed 9 years ago

dhunink commented 9 years ago

Need a solid and fast way to get the username of the logged-in user. See below:

identMang = store.get("veldwerk_identmanager"); //Works: console.log(identMang.credentials); //Fails: console.log(identMang.credentials.userId);

dhunink commented 9 years ago

Fixed by using portal.user.username. @mvanhulzen agree, or any other suggestions?