diff options
Diffstat (limited to 'shared/server-commands')
-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 | }, |