From 84e7ff2757b6736df4277fb2c1d48d3ca0a760ae Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 23 Sep 2022 16:23:06 +0200 Subject: Test akismet plugin signup --- shared/server-commands/users/users-command.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'shared') 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 { username: string password?: string displayName?: string + email?: string channel?: { name: string displayName: string } }) { - const { username, password = 'password', displayName, channel } = options + const { username, password = 'password', displayName, channel, email = username + '@example.com' } = options const path = '/api/v1/users/register' return this.postBodyRequest({ @@ -232,7 +233,7 @@ export class UsersCommand extends AbstractCommand { fields: { username, password, - email: username + '@example.com', + email, displayName, channel }, -- cgit v1.2.3