/** * @param string $gssfId * @return VerificationResult */ public function verify($gssfId) { $verification = $this->state->remove('current_verification'); if (!$verification) { return VerificationResult::noSuchProcedure(); } if ($gssfId === $verification['gssfId']) { return VerificationResult::verificationSucceeded($verification['procedureId']); } return VerificationResult::verificationFailed($verification['procedureId']); }
/** * Remove a session variable * * @param string $strKey The variable name */ public function remove($strKey) { // Map the referer (see #281) if (in_array($strKey, $this->mappedKeys)) { $this->session->remove($strKey); } else { $this->sessionBag->remove($strKey); } }
/** * Remove a session variable * * @param string $strKey The variable name */ public function remove($strKey) { @trigger_error('Using Session::remove() has been deprecated and will no longer work in Contao 5.0. Use the Symfony session via the container instead.', E_USER_DEPRECATED); // Map the referer (see #281) if ($strKey == 'referer') { $this->session->remove('referer'); } else { $this->sessionBag->remove($strKey); } }