With reference to my own question, I have found that we can change density and number of lines and dots in native magento 2 captcha in /vendor/magento/zendframework1/library/Zend/Captcha/Image.php
.
Now my question is that how can we override above file class using custom module, because we don't want to make changes directly in core magento files.
Any help would be appreciated.
Thanks
Best Answer
It is not so complicated. First in
composer.json
file add this line inpsr-0
nodeso it will look like that
Then create directory
app/code/Zend/Captcha/
and place there your fileImage.php
that you want to override.After that just run
composer update
.