mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 06:58:25 +00:00
JS SDK no longer does redirect for us, get the URL and update browser window location
This commit is contained in:
@@ -26,7 +26,8 @@ module.exports = {
|
|||||||
var parsedUrl = url.parse(window.location.href, true);
|
var parsedUrl = url.parse(window.location.href, true);
|
||||||
parsedUrl.query["homeserver"] = cli.getHomeserverUrl();
|
parsedUrl.query["homeserver"] = cli.getHomeserverUrl();
|
||||||
parsedUrl.query["identityServer"] = cli.getIdentityServerUrl();
|
parsedUrl.query["identityServer"] = cli.getIdentityServerUrl();
|
||||||
MatrixClientPeg.get().loginWithCas(url.format(parsedUrl));
|
var casUrl = MatrixClientPeg.get().getCasLoginUrl(url.format(parsedUrl));
|
||||||
|
window.location.href = casUrl;
|
||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user