mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
No need for Object.assign here either
Co-authored-by: Bruno Windels <brunow@matrix.org>
This commit is contained in:
parent
7bacbec5e9
commit
2aad5546bf
@ -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 New Issue
Block a user