mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
dont assume id server when verifying phone numbers either
This commit is contained in:
parent
040bc5e157
commit
978866ea96
1 changed files with 2 additions and 3 deletions
|
@ -224,13 +224,12 @@ export default class AddThreepid {
|
||||||
throw result;
|
throw result;
|
||||||
}
|
}
|
||||||
|
|
||||||
const identityServerDomain = MatrixClientPeg.get().idBaseUrl.split("://")[1];
|
|
||||||
if (await MatrixClientPeg.get().doesServerSupportSeparateAddAndBind()) {
|
if (await MatrixClientPeg.get().doesServerSupportSeparateAddAndBind()) {
|
||||||
if (this.bind) {
|
if (this.bind) {
|
||||||
await MatrixClientPeg.get().bindThreePid({
|
await MatrixClientPeg.get().bindThreePid({
|
||||||
sid: this.sessionId,
|
sid: this.sessionId,
|
||||||
client_secret: this.clientSecret,
|
client_secret: this.clientSecret,
|
||||||
id_server: identityServerDomain,
|
id_server: getIdServerDomain(),
|
||||||
id_access_token: await authClient.getAccessToken(),
|
id_access_token: await authClient.getAccessToken(),
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
@ -243,7 +242,7 @@ export default class AddThreepid {
|
||||||
await MatrixClientPeg.get().addThreePid({
|
await MatrixClientPeg.get().addThreePid({
|
||||||
sid: this.sessionId,
|
sid: this.sessionId,
|
||||||
client_secret: this.clientSecret,
|
client_secret: this.clientSecret,
|
||||||
id_server: identityServerDomain,
|
id_server: getIdServerDomain(),
|
||||||
}, this.bind);
|
}, this.bind);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue