diff options
author | varac <varacanero@zeromail.org> | 2015-10-08 13:56:11 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2015-10-08 13:56:11 +0200 |
commit | e300bf74d555d28d4d3d15df4e26661898865db2 (patch) | |
tree | d2634a5223e5682fc97c5ec81cdb0e31db7b9805 /pages/docs/platform/services | |
parent | 2b622dbca6ed2dacdd661d4806a88da0c1a9508b (diff) |
Add header for invite codes
Diffstat (limited to 'pages/docs/platform/services')
-rw-r--r-- | pages/docs/platform/services/webapp.md | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/pages/docs/platform/services/webapp.md b/pages/docs/platform/services/webapp.md index d82d97c..35cce41 100644 --- a/pages/docs/platform/services/webapp.md +++ b/pages/docs/platform/services/webapp.md @@ -48,7 +48,10 @@ By putting this in `services/webapp.json`, all the `webapp` nodes will inherit t There are many options in `provider.json` that also control how the webapp behaves. See [[provider-configuration]] for details. -* Invite codes: Enabling the invite code functionality will require new users to provide a valid invite code while signing up for a new account. This is turned off by default, allowing all new users to create an account. To turn on invite codes, follow these steps after making sure that LEAP webapp and LEAP platform are both v0.8 or greater: +Invite codes +------------ + +Enabling the invite code functionality will require new users to provide a valid invite code while signing up for a new account. This is turned off by default, allowing all new users to create an account. To turn on invite codes, follow these steps after making sure that LEAP webapp and LEAP platform are both v0.8 or greater: Set the `invite_code` option to `true` in `services/webapp.json`: @@ -56,14 +59,14 @@ Set the `invite_code` option to `true` in `services/webapp.json`: "webapp": { "invite_required": true } - } + } Run `leap deploy` to enable the option. You can then generate invite codes by running the following rake task from the webapp directory: - + `sudo -u leap-webapp RAILS_ENV=production bundle exec rake generate_invites[x,y]` - + The *x* specifies the amount of codes to generate. The *y* parameter is optional: By default, all new invite codes can be used once and will then become invalid. If you provide another value for *y*, you can set a different amount of maximum uses for the codes you generate. |