mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: don't explode if server sends checkSession
This commit is contained in:
@@ -155,6 +155,7 @@ app.cacheBuster = null;
|
|||||||
message = message.message || message;
|
message = message.message || message;
|
||||||
|
|
||||||
if (message === '[[error:invalid-session]]') {
|
if (message === '[[error:invalid-session]]') {
|
||||||
|
app.logout(false);
|
||||||
return app.handleInvalidSession();
|
return app.handleInvalidSession();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -168,7 +169,6 @@ app.cacheBuster = null;
|
|||||||
|
|
||||||
app.handleInvalidSession = function () {
|
app.handleInvalidSession = function () {
|
||||||
socket.disconnect();
|
socket.disconnect();
|
||||||
app.logout(false);
|
|
||||||
bootbox.alert({
|
bootbox.alert({
|
||||||
title: '[[error:invalid-session]]',
|
title: '[[error:invalid-session]]',
|
||||||
message: '[[error:invalid-session-text]]',
|
message: '[[error:invalid-session-text]]',
|
||||||
|
|||||||
Reference in New Issue
Block a user