Skip to content

Commit

Permalink
force logout ensures the session is destroyed on client (even if API/…
Browse files Browse the repository at this point in the history
…JWT errors) #119
  • Loading branch information
nelsonic committed Apr 13, 2015
1 parent 09c96c1 commit 4dcfcea
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions front/public/js/alpha.js
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,15 @@ $(document).ready(function() {
})
},
error: function(xhr, err) {
console.log('LOGOUT - - - - - - - ERROR:')
console.log(xhr);
console.log(err);
clear();
return boot(function(){
$('#nav').fadeOut();
$('#login').fadeIn();
$('#why').show();
})
}
});
}
Expand Down

0 comments on commit 4dcfcea

Please sign in to comment.