aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/server-commands/users
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-09-23 16:23:06 +0200
committerChocobozzz <me@florianbigard.com>2022-09-26 16:27:06 +0200
commit84e7ff2757b6736df4277fb2c1d48d3ca0a760ae (patch)
treedf30213d777327d9513782ee5d4894473109ff93 /shared/server-commands/users
parent4f3814808791d8f380e75d152e0e14a01b758b9a (diff)
downloadPeerTube-84e7ff2757b6736df4277fb2c1d48d3ca0a760ae.tar.gz
PeerTube-84e7ff2757b6736df4277fb2c1d48d3ca0a760ae.tar.zst
PeerTube-84e7ff2757b6736df4277fb2c1d48d3ca0a760ae.zip
Test akismet plugin signup
Diffstat (limited to 'shared/server-commands/users')
-rw-r--r--shared/server-commands/users/users-command.ts5
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 },