PowInvitation.Ecto.Context (Pow v1.0.25) View Source

Handles invitation context for user.

Link to this section Summary

Functions

Creates an invited user.

Finds an invited user by the invitation_token column.

Updates an invited user and accepts invitation.

Link to this section Functions

Link to this function

create(inviter_user, params, config)

View Source

Specs

Creates an invited user.

See PowInvitation.Ecto.Schema.invite_changeset/3.

Link to this function

get_by_invitation_token(token, config)

View Source

Specs

get_by_invitation_token(binary(), Pow.Config.t()) ::
  Pow.Ecto.Context.user() | nil

Finds an invited user by the invitation_token column.

Ignores users with :invitation_accepted_at set.

Link to this function

update(user, params, config)

View Source

Specs

Updates an invited user and accepts invitation.

See PowInvitation.Ecto.Schema.accept_invitation_changeset/2.