Sign out users also on 404 from user query from API
On travis-ci.com we return 404 from queries that failed authentication for security reasons.
This commit is contained in:
parent
86315e48ad
commit
996bde3200
|
@ -99,7 +99,7 @@ Auth = Ember.Object.extend
|
|||
else
|
||||
@signOut()
|
||||
, (status, xhr) =>
|
||||
@signOut() if status == 403
|
||||
@signOut() if status == 403 || status == 404
|
||||
|
||||
signedIn: (->
|
||||
@get('state') == 'signed-in'
|
||||
|
|
Loading…
Reference in New Issue
Block a user