Index: trunk/extensions/CrowdAuthentication/CrowdAuthentication.php |
— | — | @@ -27,6 +27,7 @@ |
28 | 28 | 'path' => __FILE__, |
29 | 29 | 'name' => 'Crowd Authentication Plugin', |
30 | 30 | 'author' => 'River Tarnell', |
| 31 | + 'version' => '1.1', |
31 | 32 | 'descriptionmsg' => 'crowdauthentication-desc', |
32 | 33 | 'url' => 'http://www.mediawiki.org/wiki/Extension:CrowdAuthentication' |
33 | 34 | ); |
— | — | @@ -40,6 +41,8 @@ |
41 | 42 | $caImportGroups = true; |
42 | 43 | $caOverwriteLocalGroups = false; |
43 | 44 | |
| 45 | +$caAddUserToCrowd = true; |
| 46 | + |
44 | 47 | class caPasswordCredential { |
45 | 48 | /** |
46 | 49 | * @var string |
— | — | @@ -307,6 +310,11 @@ |
308 | 311 | * @return bool |
309 | 312 | */ |
310 | 313 | public function addUser( $user, $password, $email = '', $realname = '' ) { |
| 314 | + global $caAddUserToCrowd; |
| 315 | + if ( !$caAddUserToCrowd ) { |
| 316 | + return true; |
| 317 | + } |
| 318 | + |
311 | 319 | global $caDefaultGroups; |
312 | 320 | $crowd = $this->getCrowd(); |
313 | 321 | $nameparts = split( " ", $realname, 2 ); |