set('create', false); $template->set('useemail', false); $template->set('usedomain', false); } function updateUser( &$user ){ $user->mEmail = strtolower($user->getName())."@fedoraproject.org"; return true; } function autoCreate() { return true; } function setPassword($password) { return false; } function setDomain( $domain ) { $this->domain = $domain; } function validDomain( $domain ) { return true; } function updateExternalDB($user) { return true; } function canCreateAccounts() { return false; } function addUser($user, $password) { return true; } function strict() { return true; } function strictUserAuth( $username ) { return true; } function allowPasswordChange() { return false; } function initUser(&$user) { $user->mEmail = strtolower($user->getName())."@fedoraproject.org"; $user->mEmailAuthenticated = wfTimestampNow(); $user->setToken(); $user->saveSettings(); return true; } } /** * Some extension information init */ $wgExtensionCredits['other'][] = array( 'name' => 'Auth_FAS', 'version' => '0.9.1', 'author' => 'Nigel Jones', 'description' => 'Authorisation plugin allowing login with FAS2 accounts'#, ); ?>