Reference Source
import SignUpModal from 'flarum/components/SignUpModal.js'
public class | source

SignUpModal

Extends:

flarum/components/Modal~Modal → SignUpModal

The SignUpModal component displays a modal dialog with a singup form.

Props

  • username
  • email
  • password
  • token An email token to sign up with.

Member Summary

Public Members
public

The value of the email input.

public
public

The value of the password input.

public

The value of the username input.

public

welcomeUser: null | User

The user that has been signed up and that should be welcomed.

Method Summary

Public Methods
public

body(): *

public

className(): *

public
public
public

init()

public

logIn()

Open the log in modal, prefilling it with an email/username/password if the user has entered one.

public
public

onsubmit(e: *)

public

Get the data that should be submitted in the sign-up request.

public

title(): *

Public Members

public email: Function source

The value of the email input.

public loading: boolean source

public password: Function source

The value of the password input.

public username: Function source

The value of the username input.

public welcomeUser: null | User source

The user that has been signed up and that should be welcomed.

Public Methods

public body(): * source

Return:

*

public className(): * source

Return:

*

public content(): undefined[] source

Return:

undefined[]

Return:

undefined[]

public init() source

public logIn() source

Open the log in modal, prefilling it with an email/username/password if the user has entered one.

public onready() source

public onsubmit(e: *) source

Params:

NameTypeAttributeDescription
e *

public submitData(): Object source

Get the data that should be submitted in the sign-up request.

Return:

Object

public title(): * source

Return:

*