lemmy_register: Register a new user.

View source: R/http-methods.R

lemmy_registerR Documentation

Register a new user.

Description

HTTP.POST /user/register

Usage

lemmy_register(
  username,
  password,
  password_verify,
  show_nsfw,
  email = NULL,
  captcha_uuid = NULL,
  captcha_answer = NULL,
  honeypot = NULL,
  answer = NULL,
  .lemmy_instance = getOption("lemmy_instance", "https://lemmy.world")
)

Arguments

username

A character value.

password

A character value.

password_verify

A character value.

show_nsfw

A logical value.

email

(Optional) A character value.

captcha_uuid

(Optional) A character value.

captcha_answer

(Optional) A character value.

honeypot

(Optional) A character value.

answer

(Optional) A character value.

.lemmy_instance

Default: "https://lemmy.world". Change the default instance by setting the lemmy_instance options().

Value

A list of length 3:

<list>
|-jwt: (Optional) A character value
|-registration_created: A logical value
`-verify_email_sent: A logical value

remmy documentation built on July 26, 2023, 5:37 p.m.