mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 03:06:31 -05:00
Fixed only "AUTH failed" error message would redirect to 403
This commit is contained in:
parent
2eec0ae35d
commit
eba84527c3
1 changed files with 2 additions and 1 deletions
|
@ -1175,6 +1175,7 @@ socket.on('info', function (data) {
|
||||||
});
|
});
|
||||||
socket.on('error', function (data) {
|
socket.on('error', function (data) {
|
||||||
console.error(data);
|
console.error(data);
|
||||||
|
if (data.message.indexOf('AUTH failed') === 0)
|
||||||
location.href = "./403";
|
location.href = "./403";
|
||||||
});
|
});
|
||||||
socket.on('disconnect', function (data) {
|
socket.on('disconnect', function (data) {
|
||||||
|
|
Loading…
Reference in a new issue