Difference between revisions of "Invite code generation"

From Dreamwidth Notes
Jump to: navigation, search
(Hide the TOC)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
If you want to [[Allow users to register | leave invite codes enabled]] on your installation, you'll need to know how to generate them for users! There are a few ways you can do it. All of them require the user who is generating the invite codes to have been granted the 'payments' [[Privileges|priv]], and for that user to be logged in while granting the invite codes.
 
If you want to [[Allow users to register | leave invite codes enabled]] on your installation, you'll need to know how to generate them for users! There are a few ways you can do it. All of them require the user who is generating the invite codes to have been granted the 'payments' [[Privileges|priv]], and for that user to be logged in while granting the invite codes.
  
<!-- __TOC__ -->
+
__TOC__
  
 
== Single-user grants ==
 
== Single-user grants ==
Line 19: Line 19:
 
To give out invites to all users (or all users who match certain criteria), a user who has been granted the 'payments' priv visits the invite codes distribution page at /admin/invites/distribute and fills out the form there. There are multiple criteria for distributing invites.
 
To give out invites to all users (or all users who match certain criteria), a user who has been granted the 'payments' priv visits the invite codes distribution page at /admin/invites/distribute and fills out the form there. There are multiple criteria for distributing invites.
  
You'll need to have the [http://hg.dwscoalition.org/dw-free/file/tip/bin/worker/distribute-invites bin/worker/distribute-invites] [[TheSchwartz]] worker running for this to work.
+
You'll need to have the [https://github.com/dreamwidth/dw-free/blob/develop/bin/worker/distribute-invites bin/worker/distribute-invites] [[TheSchwartz]] worker running for this to work.
  
 
== By request ==
 
== By request ==
Line 31: Line 31:
 
[[Category: Development]]
 
[[Category: Development]]
 
[[Category: Dreamwidth Installation]][[Category:Administration]]
 
[[Category: Dreamwidth Installation]][[Category:Administration]]
 +
[[Category: Obsolete]]

Latest revision as of 06:51, 29 October 2023

If you want to leave invite codes enabled on your installation, you'll need to know how to generate them for users! There are a few ways you can do it. All of them require the user who is generating the invite codes to have been granted the 'payments' priv, and for that user to be logged in while granting the invite codes.

Single-user grants

A user who has been granted the 'payments' priv visits the Admin Console while logged in (/admin/console) and generates one or more codes for a single user. The command to generate invites is:

make_invites username number "reason"

For instance:

make_invites system 5 "to create dev accounts"

The above command issues 5 invite codes to the 'system' user, with a note (where?) saying "to create dev accounts".

Multiple user grants

To give out invites to all users (or all users who match certain criteria), a user who has been granted the 'payments' priv visits the invite codes distribution page at /admin/invites/distribute and fills out the form there. There are multiple criteria for distributing invites.

You'll need to have the bin/worker/distribute-invites TheSchwartz worker running for this to work.

By request

This is a two-part process.

Recipient: The user who needs the invite codes (either you logged in as that account, or the account owner, if that is a different person) visit the Invite Someone page at /manage/circle/invite and click the link to request more invites.

Sender: Make sure that the user who will be sending the invite codes has been granted the 'payments' priv, and visit the invite codes requests page at /admin/invites/requests while logged in as that user. You'll see the request there and can choose how many invite codes to grant.