static function callbackSuccess(Rublon2FactorCallback $callback) { if ($action = $callback->getConsumerParam(self::PARAM_ACTION)) { if ($strategy = RublonConfirmStrategy::getStrategyInstance($action)) { $strategy->callbackSuccess($callback); } } }
function callbackSuccessNo(Rublon2FactorCallback $callback) { $url = $callback->getConsumerParam(RublonConfirmations::PARAM_FALLBACK_URL); RublonConfirmations::redirectParentFrame($url, $this->getAction(), __('Operation has been canceled.', 'rublon')); }