JS SDK no longer does redirect for us, get the URL and update browser window location

pull/21833/head
Steven Hammerton 2015-11-06 12:12:51 +00:00
parent a7c53e99d9
commit fec362c4df
1 changed files with 2 additions and 1 deletions

View File

@ -26,7 +26,8 @@ module.exports = {
var parsedUrl = url.parse(window.location.href, true);
parsedUrl.query["homeserver"] = cli.getHomeserverUrl();
parsedUrl.query["identityServer"] = cli.getIdentityServerUrl();
MatrixClientPeg.get().loginWithCas(url.format(parsedUrl));
var casUrl = MatrixClientPeg.get().getCasLoginUrl(url.format(parsedUrl));
window.location.href = casUrl;
},
};