/** * On new account creation, record the username's thing-bob. * (Called after a user account is created) * * @param $user User * @return bool */ public static function asAddNewAccountHook($user) { $spoof = new CentralAuthSpoofUser($user->getName()); $spoof->record(); return true; }
/** * Record the current username in the central AntiSpoof system * if that feature is enabled */ protected function recordAntiSpoof() { if (class_exists('CentralAuthSpoofUser')) { $spoof = new CentralAuthSpoofUser($this->mName); $spoof->record(); } }