Add invite codes #261
Reference in New Issue
Block a user
Delete Branch "invite-codes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds a simple
InviteCodemodel to hold active codes. New codes can be generated with the rake task:Check for the correct code is implemented via custom validation in the
Usermodel and is triggered only in theregistrationcontext. It can also be enabled/disabled per environment viaconfig.invite_codes_enabled.When a user is created, the used code is destroyed in an
after_createcallback./claim #259
💵 To receive payouts, sign up on Algora, link your Github account and connect with Stripe/Alipay.
Pull request closed