1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 18:29:27 +02:00

Test akismet plugin signup

This commit is contained in:
Chocobozzz 2022-09-23 16:23:06 +02:00
parent 4f38148087
commit 84e7ff2757
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 40 additions and 10 deletions

View file

@ -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
},