summaryrefslogtreecommitdiff
path: root/pages/docs
diff options
context:
space:
mode:
authorvarac <varac@users.noreply.github.com>2015-10-08 13:10:23 +0200
committervarac <varac@users.noreply.github.com>2015-10-08 13:10:23 +0200
commit2b622dbca6ed2dacdd661d4806a88da0c1a9508b (patch)
tree2fc6cac9a20ad282c53cf56c78e4cfc803889997 /pages/docs
parent38f1fd6a30f84d847e2a72b8cd270f8e85309ecb (diff)
parent034c2ef637ada3768d2cda8fb09c842b61206c6f (diff)
Merge pull request #7 from Alster-Hamburgers/invite_documentation
Added section on invite codes to documentation
Diffstat (limited to 'pages/docs')
-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
---------------------------