diff --git a/src/Socialbox/Classes/StandardMethods/GetCaptcha.php b/src/Socialbox/Classes/StandardMethods/VerificationGetCaptcha.php similarity index 96% rename from src/Socialbox/Classes/StandardMethods/GetCaptcha.php rename to src/Socialbox/Classes/StandardMethods/VerificationGetCaptcha.php index a7bbc78..854be86 100644 --- a/src/Socialbox/Classes/StandardMethods/GetCaptcha.php +++ b/src/Socialbox/Classes/StandardMethods/VerificationGetCaptcha.php @@ -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 diff --git a/src/Socialbox/Enums/StandardMethods.php b/src/Socialbox/Enums/StandardMethods.php index e412502..c13b9c4 100644 --- a/src/Socialbox/Enums/StandardMethods.php +++ b/src/Socialbox/Enums/StandardMethods.php @@ -3,7 +3,7 @@ namespace Socialbox\Enums; use Socialbox\Classes\StandardMethods\CreateSession; -use Socialbox\Classes\StandardMethods\GetCaptcha; +use Socialbox\Classes\StandardMethods\VerificationGetCaptcha; use Socialbox\Classes\StandardMethods\GetMe; use Socialbox\Classes\StandardMethods\Ping; use Socialbox\Classes\StandardMethods\Register; @@ -18,7 +18,7 @@ enum StandardMethods : string case CREATE_SESSION = 'createSession'; case REGISTER = 'register'; case GET_ME = 'getMe'; - case GET_CAPTCHA = 'getCaptcha'; + case VERIFICATION_GET_CAPTCHA = 'verificationGetCaptcha'; /** * @param ClientRequest $request @@ -34,7 +34,7 @@ enum StandardMethods : string self::CREATE_SESSION => CreateSession::execute($request, $rpcRequest), self::REGISTER => Register::execute($request, $rpcRequest), self::GET_ME => GetMe::execute($request, $rpcRequest), - self::GET_CAPTCHA => GetCaptcha::execute($request, $rpcRequest), + self::VERIFICATION_GET_CAPTCHA => VerificationGetCaptcha::execute($request, $rpcRequest), }; } } \ No newline at end of file