Don't inhibit login

This commit is contained in:
RMidhunSuresh 2022-10-11 17:58:07 +05:30
parent 664038b946
commit 85a9a019c8
No known key found for this signature in database

View File

@ -164,7 +164,7 @@ export class HomeServerApi {
return this._unauthedRequest("GET", this._url("/login")); return this._unauthedRequest("GET", this._url("/login"));
} }
register(username: string | null, password: string, initialDeviceDisplayName: string, auth?: Record<string, any>, inhibitLogin: boolean = true , options: BaseRequestOptions = {}): IHomeServerRequest { register(username: string | null, password: string, initialDeviceDisplayName: string, auth?: Record<string, any>, inhibitLogin: boolean = false , options: BaseRequestOptions = {}): IHomeServerRequest {
options.allowedStatusCodes = [401]; options.allowedStatusCodes = [401];
const body: any = { const body: any = {
auth, auth,