Skip to content
This repository has been archived by the owner on Jan 2, 2020. It is now read-only.

Generating Invite Code

varac edited this page Jan 31, 2017 · 3 revisions

see also https://leap.se/en/docs/platform/services/webapp#invite-codes

Using the webapp

If you are flagged as an provider admin in the provider config, you should log in with your account to the leap-webapp, and an "Invite Code" tab should be available, i.e. https://unstable.bitmask.net/invite_codes. If you are not an admin at this moment, ask so anybody else can grant you admin privs.

Using ssh

ssh into the server and then:

cd /srv/leap/webapp
sudo -u leap-webapp RAILS_ENV=production bundle exec rake generate_invites[n,u]

n = number of invite codes

u = number of users an invite code is good for

The number in the brackets at the end is the number of invite codes you want.