diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-16 10:42:24 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | c0e8b12e7fd554ba4d2ceb0c4900804c6a4c63ea (patch) | |
tree | baf29753ac5d4598643e3bee719f8df0cc36c59d /shared/extra-utils/users/login-command.ts | |
parent | 08642a765ea514a00f159db898edf14c376fbe6c (diff) | |
download | PeerTube-c0e8b12e7fd554ba4d2ceb0c4900804c6a4c63ea.tar.gz PeerTube-c0e8b12e7fd554ba4d2ceb0c4900804c6a4c63ea.tar.zst PeerTube-c0e8b12e7fd554ba4d2ceb0c4900804c6a4c63ea.zip |
Refactor requests
Diffstat (limited to 'shared/extra-utils/users/login-command.ts')
-rw-r--r-- | shared/extra-utils/users/login-command.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/shared/extra-utils/users/login-command.ts b/shared/extra-utils/users/login-command.ts index 10c3db851..b39577260 100644 --- a/shared/extra-utils/users/login-command.ts +++ b/shared/extra-utils/users/login-command.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { HttpStatusCode } from '@shared/core-utils' | 1 | import { HttpStatusCode } from '@shared/models' |
2 | import { PeerTubeProblemDocument } from '@shared/models' | 2 | import { PeerTubeProblemDocument } from '@shared/models' |
3 | import { unwrapBody } from '../requests' | 3 | import { unwrapBody } from '../requests' |
4 | import { AbstractCommand, OverrideCommandOptions } from '../shared' | 4 | import { AbstractCommand, OverrideCommandOptions } from '../shared' |
@@ -26,7 +26,7 @@ export class LoginCommand extends AbstractCommand { | |||
26 | ...options, | 26 | ...options, |
27 | 27 | ||
28 | path, | 28 | path, |
29 | type: 'form', | 29 | requestType: 'form', |
30 | fields: body, | 30 | fields: body, |
31 | implicitToken: false, | 31 | implicitToken: false, |
32 | defaultExpectedStatus: HttpStatusCode.OK_200 | 32 | defaultExpectedStatus: HttpStatusCode.OK_200 |
@@ -72,7 +72,7 @@ export class LoginCommand extends AbstractCommand { | |||
72 | ...options, | 72 | ...options, |
73 | 73 | ||
74 | path, | 74 | path, |
75 | type: 'form', | 75 | requestType: 'form', |
76 | fields: body, | 76 | fields: body, |
77 | implicitToken: false, | 77 | implicitToken: false, |
78 | defaultExpectedStatus: HttpStatusCode.OK_200 | 78 | defaultExpectedStatus: HttpStatusCode.OK_200 |
@@ -88,7 +88,7 @@ export class LoginCommand extends AbstractCommand { | |||
88 | ...options, | 88 | ...options, |
89 | 89 | ||
90 | path, | 90 | path, |
91 | type: 'form', | 91 | requestType: 'form', |
92 | implicitToken: false, | 92 | implicitToken: false, |
93 | defaultExpectedStatus: HttpStatusCode.OK_200 | 93 | defaultExpectedStatus: HttpStatusCode.OK_200 |
94 | })) | 94 | })) |
@@ -111,7 +111,7 @@ export class LoginCommand extends AbstractCommand { | |||
111 | ...options, | 111 | ...options, |
112 | 112 | ||
113 | path, | 113 | path, |
114 | type: 'form', | 114 | requestType: 'form', |
115 | fields: body, | 115 | fields: body, |
116 | implicitToken: false, | 116 | implicitToken: false, |
117 | defaultExpectedStatus: HttpStatusCode.OK_200 | 117 | defaultExpectedStatus: HttpStatusCode.OK_200 |