Difference between revisions of "Allow users to register"
Foxfirefey (Talk | contribs) (needs updates) |
(rewrite for invite code) |
||
Line 1: | Line 1: | ||
− | + | As the code currently stands, you can either enable or disable invite codes in your installation. This is done in etc/config.pl: | |
− | + | $USE_ACCT_CODES = 1; | |
− | + | By default, this is set to enabled in a new installation. If you're developing, you may wish to set this to 0. This will allow anyone to create an account without having an invite code. | |
− | + | To create and distribute invite codes (so you can make accounts while $USE_ACCT_CODES is on), log in as the system user. Go to the Admin Console ($SITEROOT/admin/console) and type: | |
− | + | make_invites <username> <count> <reason> | |
− | + | For instance: | |
+ | |||
+ | make_invites system 1 "to create my hacking account" | ||
+ | |||
+ | Your invite codes will print out on the success page. They will also show up at $SITEROOT/manage/circle/invite.bml (where they can be emailed if you'd like). | ||
+ | |||
+ | If you want accounts other than the system account to be able to use the make_invites console command, you'll need to grant the "payments" priv to anyone whom you want to have that ability. | ||
− | |||
− | |||
Currently there is no default TOS for the mini-TOS section. You can avoid that showing up by either creating a TOS or by setting this variable in etc/ljconfig.pl: | Currently there is no default TOS for the mini-TOS section. You can avoid that showing up by either creating a TOS or by setting this variable in etc/ljconfig.pl: |
Revision as of 16:48, 16 February 2009
As the code currently stands, you can either enable or disable invite codes in your installation. This is done in etc/config.pl:
$USE_ACCT_CODES = 1;
By default, this is set to enabled in a new installation. If you're developing, you may wish to set this to 0. This will allow anyone to create an account without having an invite code.
To create and distribute invite codes (so you can make accounts while $USE_ACCT_CODES is on), log in as the system user. Go to the Admin Console ($SITEROOT/admin/console) and type:
make_invites <username> <count> <reason>
For instance:
make_invites system 1 "to create my hacking account"
Your invite codes will print out on the success page. They will also show up at $SITEROOT/manage/circle/invite.bml (where they can be emailed if you'd like).
If you want accounts other than the system account to be able to use the make_invites console command, you'll need to grant the "payments" priv to anyone whom you want to have that ability.
Currently there is no default TOS for the mini-TOS section. You can avoid that showing up by either creating a TOS or by setting this variable in etc/ljconfig.pl:
$TOS_CHECK = 1; # require users to agree to TOS
To:
$TOS_CHECK = 0; # require users to agree to TOS