Changeset 492

Show
Ignore:
Timestamp:
01/12/09 15:28:34 (10 months ago)
Author:
jdecq
Message:

fix authentication when token is wrong

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/uploadr/MacUploadr.app/Contents/Resources/chrome/content/uploadr/api.js

    r423 r492  
    2020                _checkToken: function(rsp) { 
    2121                        if ('object' != typeof rsp || 'ok' != rsp.getAttribute('stat')) { 
     22                        for each (var u in users.list) { 
     23                                if (u.current) { 
     24                                        u.token = null; 
     25                                        break; 
     26                                } 
     27                        } 
    2228                                users.logout(false); 
    2329                        } else {