View Source Bonfire.Me.Accounts (bonfire v0.3.0-classic-beta.4)
Link to this section Summary
Functions
Attempts to log in by password and either username or email.
Link to this section Types
@type changeset_name() :: :change_password | :confirm_email | :login | :signup
Link to this section Functions
@spec changeset(changeset_name(), params :: map(), opts :: Keyword.t()) :: Ecto.Changeset.t()
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