The server administrator can disallow registration without invites. The ability to create new invites can be limited or disabled for the given user. One can see who invited the user (this is public information).
The config.invitations section was added with two fields: requiredForSignUp (boolean, false by default) and canCreateIf (array of conditions, empty by default).
If config.invitations.requiredForSignUp is true, then:
Registration without invites is not allowed;
Multi-use invites are not not allowed.
API changes:
GET /v2/server-info method returns new registrationRequiresInvite boolean field.
GET /v2/users/:userName method returns new invitedBy field. The value is either null or the name of the user who invited it.
New method GET /v2/invitations/info returns invitations creation parameters for the current user: canCreateNew (boolean), singleUseOnly (boolean), reasonNotCreate (null or object).
The server administrator can disable invites via the 'usermod' script for the given user.
The server administrator can disallow registration without invites. The ability to create new invites can be limited or disabled for the given user. One can see who invited the user (this is public information).
GET /v2/server-info
method returns new registrationRequiresInvite boolean field.GET /v2/users/:userName
method returns new invitedBy field. The value is either null or the name of the user who invited it.GET /v2/invitations/info
returns invitations creation parameters for the current user: canCreateNew (boolean), singleUseOnly (boolean), reasonNotCreate (null or object).