Skip to content

Commit 4dcf54f

Browse files
bagvandweeman1337
andauthored
fix registration add phone number not working (#2876)
Co-authored-by: Michael Weimann <[email protected]>
1 parent d43e664 commit 4dcf54f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/client.ts

+6-5
Original file line numberDiff line numberDiff line change
@@ -8757,11 +8757,12 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
87578757
clientSecret: string,
87588758
msisdnToken: string,
87598759
): Promise<any> { // TODO: Types
8760-
const u = new URL(url);
8761-
u.searchParams.set("sid", sid);
8762-
u.searchParams.set("client_secret", clientSecret);
8763-
u.searchParams.set("token", msisdnToken);
8764-
return this.http.requestOtherUrl(Method.Post, u);
8760+
const params = {
8761+
sid: sid,
8762+
client_secret: clientSecret,
8763+
token: msisdnToken,
8764+
};
8765+
return this.http.requestOtherUrl(Method.Post, url, params);
87658766
}
87668767

87678768
/**

0 commit comments

Comments
 (0)