forked from mystiq/hydrogen-web
No need for Object.assign here either
Co-authored-by: Bruno Windels <brunow@matrix.org>
This commit is contained in:
parent
7bacbec5e9
commit
2aad5546bf
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ export class HomeServerApi {
|
||||||
}
|
}
|
||||||
|
|
||||||
register(username: string | null, password: string, initialDeviceDisplayName: string, auth?: Record<string, any>, inhibitLogin: boolean = true , options: IRequestOptions = {}): IHomeServerRequest {
|
register(username: string | null, password: string, initialDeviceDisplayName: string, auth?: Record<string, any>, inhibitLogin: boolean = true , options: IRequestOptions = {}): IHomeServerRequest {
|
||||||
Object.assign(options, { allowedErrors: [401] });
|
options.allowedErrors = [401];
|
||||||
const body: any = {
|
const body: any = {
|
||||||
auth,
|
auth,
|
||||||
password,
|
password,
|
||||||
|
|
Loading…
Reference in a new issue