Rename GetCaptcha to VerificationGetCaptcha

This commit is contained in:
netkas 2024-10-31 19:00:22 -04:00
parent 38b96db83a
commit 8e1f6351e2
2 changed files with 4 additions and 5 deletions

View file

@ -17,7 +17,7 @@ use Socialbox\Objects\ClientRequest;
use Socialbox\Objects\RpcRequest;
use Socialbox\Objects\Standard\ImageCaptcha;
class GetCaptcha extends Method
class VerificationGetCaptcha extends Method
{
/**
* @inheritDoc
@ -74,7 +74,6 @@ class GetCaptcha extends Method
}
// Build the captcha
Logger::getLogger()->debug('Building captcha for peer ' . $peer->getUuid());
return $rpcRequest->produceResponse(new ImageCaptcha([
'expires' => $captchaRecord->getExpires()->getTimestamp(),
'image' => (new CaptchaBuilder($answer))->build()->inline()] // Returns HTML base64 encoded image of the captcha