mirror of https://github.com/vector-im/riot-web
Remove the access token for the old IS
Pretty important that we don't send that to the new IS...pull/21833/head
parent
bc088e4472
commit
f358b6162d
|
@ -137,6 +137,7 @@ export default class SetIdServer extends React.Component {
|
||||||
let newFormValue = this.state.idServer;
|
let newFormValue = this.state.idServer;
|
||||||
if (!errStr) {
|
if (!errStr) {
|
||||||
MatrixClientPeg.get().setIdentityServerUrl(fullUrl);
|
MatrixClientPeg.get().setIdentityServerUrl(fullUrl);
|
||||||
|
localStorage.removeItem("mx_is_access_token", fullUrl);
|
||||||
localStorage.setItem("mx_is_url", fullUrl);
|
localStorage.setItem("mx_is_url", fullUrl);
|
||||||
newFormValue = '';
|
newFormValue = '';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue