Refactor VerificationGetImageCaptcha to update comment on data URI scheme for captcha image encoding

https://github.com/nosial/Socialbox-PHP/issues/76
This commit is contained in:
netkas 2025-03-12 13:29:43 -04:00
parent 7ec1125b3f
commit e89833f20e
Signed by: netkas
GPG key ID: 4D8629441B76E4CC

View file

@ -65,7 +65,7 @@
// Build the captcha
// Returns HTML base64 encoded image of the captcha
// Important note: Must always be HTML-BASE64 which means it must be prefixed with `data:image/jpeg;base64,`
// Important note: Must always be data URI scheme eg; data:content/type;base64,
return $rpcRequest->produceResponse(new ImageCaptchaVerification([
'expires' => $captchaRecord->getExpires(),
'content' => (new CaptchaBuilder($answer))->build()->inline()