-
18 Apr 2009 10:46 AM #1
Current User?
Current User?
Hello,
I'm wondering if it's possible to get the credential details for the currently logged in user on from the OS?
I haven't been able to find any details on this.
Cheers,
Timothy Grant Vogelsang
-
18 Apr 2009 11:21 AM #2
This is not an ExtJS related question.
The answer to your question depends on the server side language and the OS your server is running.Iulian
-
18 Apr 2009 11:55 AM #3
Kind of a hack, but its a way to get the currently logged in user name.
Works in windows XP, Vista, 98, etc. It would need to be modified to work on a OSX or *NIX environment, simple change tho.Code:var up = air.File.userDirectory.nativePath; var upa = up.split('\\'); var user = upa[upa.length-1];
@iulian - I think you might have overlooked the fact that this is an AIR/ExtJS question and not server side related.-Shea
My Blog:VinylFox | Twitter:@VinylFox | JavaScript Magazine:JSMag | Curator of the Baltimore/DC JavaScript Meetup | Author: Learning ExtJS 3.x Book
ExtJS Extensions & Plugins: GMapPanel UX | HtmlEditor Buttons Plugin | Selection Enabler Plugin | Grid DataDrop Plugin | Additional Ext.Fx
Sencha Touch Plugins: Swipe Tabs | List Pull Refresh | Accelerometer Tabs
-
18 Apr 2009 12:38 PM #4
@VinylFox
Indeed, sorry! I read this thread in the RSS reader and I overlooked that is posted in the AIR section.
By the way, nice trick you have there!Iulian
-
18 Apr 2009 12:43 PM #5


Reply With Quote


