View Source Bonfire.Me.Accounts (bonfire v0.3.0-classic-beta.4)

Link to this section Summary

Link to this section Types

@type changeset_name() :: :change_password | :confirm_email | :login | :signup

Link to this section Functions

Link to this function

change_password(current_account, params_or_changeset, opts \\ [])

View Source
Link to this function

change_password(current_account, cs, params, opts)

View Source
Link to this function

changeset(changeset_name, params, opts \\ [])

View Source
@spec changeset(changeset_name(), params :: map(), opts :: Keyword.t()) ::
  Ecto.Changeset.t()
Link to this function

confirm_email(account_or_token, opts \\ [])

View Source
Link to this function

instance_is_invite_only?()

View Source
Link to this function

login(params_or_changeset, opts \\ [])

View Source

Attempts to log in by password and either username or email.

Accepts a map of parameters or a LoginFields changeset.

On success, returns {:ok, account, user} if a username was provided and {:ok, account, nil} otherwise. On error, returns {:error, changeset}

Link to this function

maybe_redeem_invite(data, opts)

View Source
Link to this function

redeemable_invite?(invite)

View Source
Link to this function

request_confirm_email(params_or_changeset_or_form_or_account, opts \\ [])

View Source
Link to this function

request_forgot_password(params)

View Source
Link to this function

signup(params_or_changeset, opts \\ [])

View Source