summaryrefslogtreecommitdiff
path: root/pages/docs/platform/services
diff options
context:
space:
mode:
authorankonym <ankonym@gmail.com>2015-10-05 11:15:47 +0200
committerankonym <ankonym@gmail.com>2015-10-08 13:07:13 +0200
commit034c2ef637ada3768d2cda8fb09c842b61206c6f (patch)
tree2fc6cac9a20ad282c53cf56c78e4cfc803889997 /pages/docs/platform/services
parent38f1fd6a30f84d847e2a72b8cd270f8e85309ecb (diff)
Updated documentation to include invite code instructions
Diffstat (limited to 'pages/docs/platform/services')
-rw-r--r--pages/docs/platform/services/webapp.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/pages/docs/platform/services/webapp.md b/pages/docs/platform/services/webapp.md
index 38b1825..d82d97c 100644
--- a/pages/docs/platform/services/webapp.md
+++ b/pages/docs/platform/services/webapp.md
@@ -48,6 +48,25 @@ 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:
+
+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.
+
+
Customization
---------------------------