Invitations
Invitations can be used for applications that do not require registration but allow users to invite others to the platform.
Through an invitation, it is possible to:
- Send an invitation email to the user to set up their credentials
- Track completed registrations
Here are some examples of the operations you can perform with invitations:
# creating an invitation (and automatically sending the invite email) @invitation = Lato::Invitation.create(params.require(:invitation).permit(:email).merge(inviter_lato_user_id: @session.user_id)) # re-sending the invitation email (max 1 every 2 minutes) @invitation.send_invite # deleting the invitation @invitation.destroy