1. #1
    Ext User netski's Avatar
    Join Date
    Oct 2008
    Posts
    50
    Vote Rating
    0
    netski is on a distinguished road

      0  

    Default 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

  2. #2
    Sencha User
    Join Date
    Jan 2008
    Posts
    62
    Vote Rating
    0
    iulian is on a distinguished road

      0  

    Default


    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

  3. #3
    Sencha - Community Support Team VinylFox's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,501
    Vote Rating
    8
    VinylFox will become famous soon enough VinylFox will become famous soon enough

      0  

    Default


    Kind of a hack, but its a way to get the currently logged in user name.

    Code:
    var up = air.File.userDirectory.nativePath;
    var upa = up.split('\\');
    var user = upa[upa.length-1];
    Works in windows XP, Vista, 98, etc. It would need to be modified to work on a OSX or *NIX environment, simple change tho.

    @iulian - I think you might have overlooked the fact that this is an AIR/ExtJS question and not server side related.

  4. #4
    Sencha User
    Join Date
    Jan 2008
    Posts
    62
    Vote Rating
    0
    iulian is on a distinguished road

      0  

    Red face


    @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

  5. #5
    Ext User netski's Avatar
    Join Date
    Oct 2008
    Posts
    50
    Vote Rating
    0
    netski is on a distinguished road

      0  

    Default


    Quote Originally Posted by VinylFox View Post
    Kind of a hack, but its a way to get the currently logged in user name.

    Code:
    var up = air.File.userDirectory.nativePath;
    var upa = up.split('\\');
    var user = upa[upa.length-1];
    Works in windows XP, Vista, 98, etc. It would need to be modified to work on a OSX or *NIX environment, simple change tho.

    @iulian - I think you might have overlooked the fact that this is an AIR/ExtJS question and not server side related.
    Great, I will give that a go.

    And no problem iulian, I realized my topic was kind of not descriptive anyways

    Cheers,
    Timothy Grant Vogelsang

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi