public function attemptActivation($code)
    {
        $result = parent::attemptActivation($code);
        if ($result === false) {
            return false;
        }

        Event::fire('rainlab.user.activate', [$this]);

        return true;
    }
public function attemptActivation($code)
    {
        $result = parent::attemptActivation($code);
        if ($result === false) {
            return false;
        }

        Event::fire('rainlab.user.activate', [$this]);

        return true;
    }
public function attemptActivation ( $ code ) { $ result = parent :: attemptActivation ( $ code ) ; if ( $ result === false ) { return false ; } Event :: fire ( 'rainlab.user.activate' , [ $ this ] ) ; return true ; }
Sends the confirmation email to a user, after activating.
@param  string $code
@return bool
Sends the confirmation email to a user after activating .