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:
parent
7ec1125b3f
commit
e89833f20e
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue