protected function _actionAdd(AnCommandContext $context)
    {
        $data = $context->data;
        $email = $data->email;
        //an email
        $person = $this->getService('repos:people.person')
                      ->getQuery()
                      ->email($email)
                      ->where('IF(!@col(enabled),@col(activationCode) <> \'\',1)')
                      ->disableChain()
                      ->fetch();

        if ($person) {
            $person->requiresReactivation()->save();
            $this->getResponse()->status = AnHttpResponse::CREATED;
            $this->person = $person;
        } else {
            throw new LibBaseControllerExceptionNotFound('Email Not Found');
        }
    }
protected function _actionAdd(AnCommandContext $context)
    {
        $data = $context->data;
        $email = $data->email;
        //an email
        $person = $this->getService('repos:people.person')
                      ->getQuery()
                      ->email($email)
                      ->where('IF(!@col(enabled),@col(activationCode) <> \'\',1)')
                      ->disableChain()
                      ->fetch();

        if ($person) {
            $person->requiresReactivation()->save();
            $this->getResponse()->status = AnHttpResponse::CREATED;
            $this->person = $person;
        } else {
            throw new LibBaseControllerExceptionNotFound('Email Not Found');
        }
    }
protected function _actionAdd ( AnCommandContext $ context ) { $ data = $ context -> data ; $ email = $ data -> email ; //an email $ person = $ this -> getService ( 'repos:people.person' ) -> getQuery ( ) -> email ( $ email ) -> where ( 'IF(!@col(enabled),@col(activationCode) <> \'\',1)' ) -> disableChain ( ) -> fetch ( ) ; if ( $ person ) { $ person -> requiresReactivation ( ) -> save ( ) ; $ this -> getResponse ( ) -> status = AnHttpResponse :: CREATED ; $ this -> person = $ person ; } else { throw new LibBaseControllerExceptionNotFound ( 'Email Not Found' ) ; } }
Resets a password.

@param AnCommandContext $context
Resets a password .