diff options
author | Chocobozzz <me@florianbigard.com> | 2022-09-23 16:23:06 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-09-26 16:27:06 +0200 |
commit | 84e7ff2757b6736df4277fb2c1d48d3ca0a760ae (patch) | |
tree | df30213d777327d9513782ee5d4894473109ff93 /shared/server-commands/users/users-command.ts | |
parent | 4f3814808791d8f380e75d152e0e14a01b758b9a (diff) | |
download | PeerTube-84e7ff2757b6736df4277fb2c1d48d3ca0a760ae.tar.gz PeerTube-84e7ff2757b6736df4277fb2c1d48d3ca0a760ae.tar.zst PeerTube-84e7ff2757b6736df4277fb2c1d48d3ca0a760ae.zip |
Test akismet plugin signup
Diffstat (limited to 'shared/server-commands/users/users-command.ts')
-rw-r--r-- | shared/server-commands/users/users-command.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/shared/server-commands/users/users-command.ts b/shared/server-commands/users/users-command.ts index d8303848d..e7d021059 100644 --- a/shared/server-commands/users/users-command.ts +++ b/shared/server-commands/users/users-command.ts | |||
@@ -217,12 +217,13 @@ export class UsersCommand extends AbstractCommand { | |||
217 | username: string | 217 | username: string |
218 | password?: string | 218 | password?: string |
219 | displayName?: string | 219 | displayName?: string |
220 | email?: string | ||
220 | channel?: { | 221 | channel?: { |
221 | name: string | 222 | name: string |
222 | displayName: string | 223 | displayName: string |
223 | } | 224 | } |
224 | }) { | 225 | }) { |
225 | const { username, password = 'password', displayName, channel } = options | 226 | const { username, password = 'password', displayName, channel, email = username + '@example.com' } = options |
226 | const path = '/api/v1/users/register' | 227 | const path = '/api/v1/users/register' |
227 | 228 | ||
228 | return this.postBodyRequest({ | 229 | return this.postBodyRequest({ |
@@ -232,7 +233,7 @@ export class UsersCommand extends AbstractCommand { | |||
232 | fields: { | 233 | fields: { |
233 | username, | 234 | username, |
234 | password, | 235 | password, |
235 | email: username + '@example.com', | 236 | email, |
236 | displayName, | 237 | displayName, |
237 | channel | 238 | channel |
238 | }, | 239 | }, |