Migration towards 0.4.0
Important changes have been made for the new version 0.4.0. Versions >= 0.3.* become deprecated and a migration is required to support the new version.
In all cases
You will have to modify the urls used by the captcha.
For the frontend url, you will have to use version 0.4.0 and update your script tag with the source
https://assets.teklia.com/ocapi/0.4.0/ocapi-0.4.0.js. Please, see the Current releases section of this page for more information.
For the backend url, you will need to add the attribute
data-ocapi-base-url to your captcha tag with the value
https://ocapi.preprod.teklia.com/v2. Also use this url to validate a user. Please, see the Adding the challenge to a form section of this page for more details.
If you were using the
captchan-* attributes, please use the new
ocapi-* attributes. Just replace the word
captchan-* attributes are still available but are deprecated.
Your captcha tags before:
Your captcha tags after:
If you were using captchan.teklia.com
Your captcha will now be able to provide fallback audio for the visually impaired.
If you were using ocapi.teklia.com
To validate a user, you had to retrieve the client id from the form with the key
captchan-client-id). You don't need it anymore and you can use your public id directly. The public id is still returned in the form but is deprecated.