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

Handles invitation context for user.

Summary

Functions

Creates an invited user.

Finds an invited user by the invitation_token column.

Updates an invited user and accepts invitation.

Functions

Link to this function

create(inviter_user, params, config)

View Source

Creates an invited user.

See PowInvitation.Ecto.Schema.invite_changeset/3.

Link to this function

get_by_invitation_token(token, config)

View Source
@spec 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

Updates an invited user and accepts invitation.

See PowInvitation.Ecto.Schema.accept_invitation_changeset/2.