diff --git a/src/Socialbox/Classes/StandardMethods/Verification/VerificationAnswerImageCaptcha.php b/src/Socialbox/Classes/StandardMethods/Verification/VerificationAnswerImageCaptcha.php index cc840c4..c6a835b 100644 --- a/src/Socialbox/Classes/StandardMethods/Verification/VerificationAnswerImageCaptcha.php +++ b/src/Socialbox/Classes/StandardMethods/Verification/VerificationAnswerImageCaptcha.php @@ -27,10 +27,9 @@ throw new MissingRpcArgumentException('answer'); } - $session = $request->getSession(); - try { + $session = $request->getSession(); if(CaptchaManager::getCaptcha($session->getPeerUuid())?->isExpired()) { return $rpcRequest->produceError(StandardError::EXPIRED, 'The captcha has expired');