forked from mystiq/hydrogen-web
rename queryLogin to getLoginFlows
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
d2c94b0d3e
commit
83f4095d88
2 changed files with 2 additions and 2 deletions
|
@ -124,7 +124,7 @@ export class SessionContainer {
|
||||||
async queryLogin(homeServer) {
|
async queryLogin(homeServer) {
|
||||||
const normalizedHS = normalizeHomeserver(homeServer);
|
const normalizedHS = normalizeHomeserver(homeServer);
|
||||||
const hsApi = new HomeServerApi({homeServer: normalizedHS, request: this._platform.request});
|
const hsApi = new HomeServerApi({homeServer: normalizedHS, request: this._platform.request});
|
||||||
const response = await hsApi.queryLogin().response();
|
const response = await hsApi.getLoginFlows().response();
|
||||||
return this.parseLoginOptions(response, normalizedHS);
|
return this.parseLoginOptions(response, normalizedHS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -134,7 +134,7 @@ export class HomeServerApi {
|
||||||
return this._get(`/rooms/${encodeURIComponent(roomId)}/state/${encodeURIComponent(eventType)}/${encodeURIComponent(stateKey)}`, {}, null, options);
|
return this._get(`/rooms/${encodeURIComponent(roomId)}/state/${encodeURIComponent(eventType)}/${encodeURIComponent(stateKey)}`, {}, null, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
queryLogin() {
|
getLoginFlows() {
|
||||||
return this._unauthedRequest("GET", this._url("/login"), null, null, null);
|
return this._unauthedRequest("GET", this._url("/login"), null, null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue