Sign out only if request for user data returns 401

This commit is contained in:
Piotr Sarnacki 2014-05-14 13:09:21 +02:00
parent 671ef19cdc
commit b280a42804

View File

@ -83,7 +83,7 @@
@storeData(data, Travis.sessionStorage)
@storeData(data, Travis.storage)
, (data, status, xhr) =>
@signOut()
@signOut() if xhr.status == 401
signedIn: ->
@get('state') == 'signed-in'