mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
rename queryLogin to getLoginFlows
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
d2c94b0d3e
commit
83f4095d88
@ -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 New Issue
Block a user