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

LogInModal

Extends:

flarum/components/Modal~Modal → LogInModal

The LogInModal component displays a modal dialog with a login form.

Props

  • email
  • password

Member Summary

Public Members
public

The value of the email input.

public
public

The value of the password input.

Method Summary

Public Methods
public
public
public

Open the forgot password modal, prefilling it with an email if the user has entered one.

public

init()

public

onerror(error: *)

public
public

onsubmit(e: *)

public

signUp()

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

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 Methods

public className(): string source

Return:

string

public content(): undefined[] source

Return:

undefined[]

public forgotPassword() source

Open the forgot password modal, prefilling it with an email if the user has entered one.

public init() source

public onerror(error: *) source

Params:

NameTypeAttributeDescription
error *

public onready() source

public onsubmit(e: *) source

Params:

NameTypeAttributeDescription
e *

public signUp() source

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

public title(): * source

Return:

*