Improved exception handling
This commit is contained in:
parent
ee48456f2f
commit
a456dda62d
1 changed files with 1 additions and 2 deletions
|
@ -27,10 +27,9 @@
|
||||||
throw new MissingRpcArgumentException('answer');
|
throw new MissingRpcArgumentException('answer');
|
||||||
}
|
}
|
||||||
|
|
||||||
$session = $request->getSession();
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
$session = $request->getSession();
|
||||||
if(CaptchaManager::getCaptcha($session->getPeerUuid())?->isExpired())
|
if(CaptchaManager::getCaptcha($session->getPeerUuid())?->isExpired())
|
||||||
{
|
{
|
||||||
return $rpcRequest->produceError(StandardError::EXPIRED, 'The captcha has expired');
|
return $rpcRequest->produceError(StandardError::EXPIRED, 'The captcha has expired');
|
||||||
|
|
Loading…
Add table
Reference in a new issue