log if we can't log out
This commit is contained in:
parent
e3a5776eae
commit
1f17b78371
1 changed files with 11 additions and 8 deletions
|
@ -54,6 +54,7 @@ function logout() {
|
||||||
}
|
}
|
||||||
|
|
||||||
return MatrixClientPeg.get().logout().then(_onLoggedOut,
|
return MatrixClientPeg.get().logout().then(_onLoggedOut,
|
||||||
|
(err) => {
|
||||||
// Just throwing an error here is going to be very unhelpful
|
// Just throwing an error here is going to be very unhelpful
|
||||||
// if you're trying to log out because your server's down and
|
// if you're trying to log out because your server's down and
|
||||||
// you want to log into a different server, so just forget the
|
// you want to log into a different server, so just forget the
|
||||||
|
@ -61,7 +62,9 @@ function logout() {
|
||||||
// token still valid, but we should fix this by having access
|
// token still valid, but we should fix this by having access
|
||||||
// tokens expire (and if you really think you've been compromised,
|
// tokens expire (and if you really think you've been compromised,
|
||||||
// change your password).
|
// change your password).
|
||||||
_onLoggedOut
|
console.log("Failed to call logout API: token will not be invalidated");
|
||||||
|
_onLoggedOut();
|
||||||
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue