source/Application/Controller/RegisterController.php
public function confirmRegistration()
    {
        $oUser = oxNew(\OxidEsales\Eshop\Application\Model\User::class);
        if ($oUser->loadUserByUpdateId($this->getUpdateId())) {
            // resetting update key parameter
            $oUser->setUpdateKey(true);

            // saving ..
            $oUser->oxuser__oxactive = new \OxidEsales\Eshop\Core\Field(1);
            $oUser->save();

            // forcing user login
            \OxidEsales\Eshop\Core\Registry::getSession()->setVariable('usr', $oUser->getId());

            // redirecting to confirmation page
            return 'register?confirmstate=1';
        } else {
            // confirmation failed
            \OxidEsales\Eshop\Core\Registry::getUtilsView()->addErrorToDisplay('REGISTER_ERRLINKEXPIRED', false, true);

            // redirecting to confirmation page
            return 'account';
        }
    }
public function confirmRegistration()
    {
        $oUser = oxNew(\OxidEsales\Eshop\Application\Model\User::class);
        if ($oUser->loadUserByUpdateId($this->getUpdateId())) {
            // resetting update key parameter
            $oUser->setUpdateKey(true);

            // saving ..
            $oUser->oxuser__oxactive = new \OxidEsales\Eshop\Core\Field(1);
            $oUser->save();

            // forcing user login
            \OxidEsales\Eshop\Core\Registry::getSession()->setVariable('usr', $oUser->getId());

            // redirecting to confirmation page
            return 'register?confirmstate=1';
        } else {
            // confirmation failed
            \OxidEsales\Eshop\Core\Registry::getUtilsView()->addErrorToDisplay('REGISTER_ERRLINKEXPIRED', false, true);

            // redirecting to confirmation page
            return 'account';
        }
    }
public function confirmRegistration ( ) { $ oUser = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ User :: class ) ; if ( $ oUser -> loadUserByUpdateId ( $ this -> getUpdateId ( ) ) ) { // resetting update key parameter $ oUser -> setUpdateKey ( true ) ; // saving .. $ oUser -> oxuser__oxactive = new \ OxidEsales \ Eshop \ Core \ Field ( 1 ) ; $ oUser -> save ( ) ; // forcing user login \ OxidEsales \ Eshop \ Core \ Registry :: getSession ( ) -> setVariable ( 'usr' , $ oUser -> getId ( ) ) ; // redirecting to confirmation page return 'register?confirmstate=1' ; } else { // confirmation failed \ OxidEsales \ Eshop \ Core \ Registry :: getUtilsView ( ) -> addErrorToDisplay ( 'REGISTER_ERRLINKEXPIRED' , false , true ) ; // redirecting to confirmation page return 'account' ; } }
Registration confirmation functionality. If registration
succeded - redirects to success page, if not - returns
exception informing about expired confirmation link

@return mixed
Registration confirmation functionality . If registration succeded - redirects to success page if not - returns exception informing about expired confirmation link