Changes between Version 2 and Version 3 of AccountControl
- Timestamp:
- Jul 25, 2007, 11:51:10 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AccountControl
v2 v3 3 3 Under normal circumstances BOINC projects are open for participation by anybody who wants to contribute their computer to the project. There may be times, however, when a project needs to limit the creation of new accounts. BOINC offers two alternatives. 4 4 5 == Disabling account creation == 5 == Disabling account creation == #disabling-account-creation 6 6 7 To disable all account creation, edit the project configuration file config.xmland add to it the element:7 To disable all account creation, edit the project configuration file [ProjectOptions config.xml] and add to it the element: 8 8 {{{ 9 9 <disable_account_creation>1</disable_account_creation> 10 10 }}} 11 11 12 This disables account creation via any mechanism (the client, the web, or account managers). You can momentarily remove this element while you create accounts.12 This disables account creation via any mechanism (the client, the web, or [AccountManagers account managers]). You can momentarily remove this element while you create accounts. 13 13 14 == Restricting account creation via 'invitation codes' == 14 == Restricting account creation via 'invitation codes' == #invite-codes 15 15 16 It is also possible to restrict account creation to only those who present a secret 'invitation code'. In this case an account can only be created via the web pages, not via the client or an account manager.16 It is also possible to restrict account creation to only those who present a secret 'invitation code'. In this case an account can only be created via the web pages, not via the client or an [AccountManagers account managers]. 17 17 18 To use this mechanism you need to add to the file `html/project/project.inc` a definition for a PHP pre-processor symbol INVITE_CODEScontaining the allowed invitation codes. A simple example is:18 To use this mechanism you need to add to the file `html/project/project.inc` a definition for a PHP constant `INVITE_CODES` containing the allowed invitation codes. A simple example is: 19 19 20 20 {{{ … … 22 22 }}} 23 23 24 This allows account creation only if the user enters the invitation code 'xyzzy' (without any quotes). The pattern in INVITE_CODES is compared to the user's input as a [http:// us2.php.net/manual/en/reference.pcre.pattern.syntax.phpPerl-Compatible Regular Expression (PCRE)], so don't forget the enclosing slashes. A more complicated example is:24 This allows account creation only if the user enters the invitation code 'xyzzy' (without any quotes). The pattern in INVITE_CODES is compared to the user's input as a [http://php.net/reference.pcre.pattern.syntax Perl-Compatible Regular Expression (PCRE)], so don't forget the enclosing slashes. A more complicated example is: 25 25 26 26 {{{