mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
Add back in the session refresh
Thanks @thisandagain!
This commit is contained in:
parent
31d4173ef5
commit
a15842a582
1 changed files with 4 additions and 3 deletions
|
@ -155,9 +155,10 @@ var Navigation = React.createClass({
|
|||
method: 'post',
|
||||
uri: '/accounts/logout/',
|
||||
useCsrf: true
|
||||
}, function (err, body) {
|
||||
if (err) return;
|
||||
if (body) log.warn('body found on logout'); // shouldn't happen
|
||||
}, function (err) {
|
||||
if (err) log.error(err);
|
||||
this.closeLogin();
|
||||
window.refreshSession();
|
||||
}.bind(this));
|
||||
},
|
||||
handleAccountNavClick: function (e) {
|
||||
|
|
Loading…
Reference in a new issue