captcha-com / laravel-captcha Goto Github PK
View Code? Open in Web Editor NEWBotDetect PHP CAPTCHA Generator integration for the Laravel framework.
Home Page: https://captcha.com/doc/php/laravel-captcha-quickstart.html
BotDetect PHP CAPTCHA Generator integration for the Laravel framework.
Home Page: https://captcha.com/doc/php/laravel-captcha-quickstart.html
Using owasp to test application vulnerability, captcha is generating a buffer overflow error. How could we prevent this error?
ErrorException in /home/vagrant/Code/supra/vendor/captcha-com/captcha/lib/botdetect/CaptchaIncludes.php line 2:
Undefined variable: _SESSION (View: /home/vagrant/Code/supra/resources/views/auth/register.blade.php)
PHP 7.0.5-2
laravel/framework 5.2
at HandleExceptions->handleError('8', 'Undefined variable: _SESSION', '/home/vagrant/Code/supra/vendor/captcha-com/captcha/lib/botdetect/CaptchaIncludes.php', '2', array('_ixtc1pzf0mpaju1crsbuu' => array('Locale' => 'en-Latn-US', 'ImageWidth' => '250', 'ImageHeight' => '50'), '_i5bmvq6it0omz8kl' => '', '_l5g9bu1cjkt2iwom' => '�0�2�0�4�0�0', '_1i9phd6faoo1jpob' => array(array('4.0.0'), array('4'), array('0'), array('0')), '_Ojwhv2tck05ujh56ly2hx9bqpo' => '4', '_l61gcrwruyn3jkds398de' => '0', '_lg5dguqvkcfwt6zulw7bl' => '0', '_Oj9t6fa7l0exsv41nnvot' => '')) in CaptchaIncludes.php line 2
I am trying to install this package on Laravel 5.4 via composer. It is asking me to enter credentials(username/password). Showing message: "Authentication required(git.captcha.com)".
My captcha not showing image
How do I debug
I am using Lavarel 5.3
THanks & Regards
Can you add package discovery feature?
It's available from Laravel 5.5.
https://laravel.com/docs/5.5/packages#package-discovery
Instead of requiring users to manually add your service provider to the config/app.php configuration file, you may define the provider in the extra section of your package's composer.json file. In addition to service providers, you may also list any facades you would like to be registered:
// composer.json
"extra": {
"laravel": {
"providers": [
"LaravelCaptcha\\Providers\\LaravelCaptchaServiceProvider"
]
}
},
Hi,
I'm started using PHP 7.2 and upgraded frpm Laravel 5.4 to laravel 5.6
in composer.json
"captcha-com/laravel-captcha": "4.2.3",
composer update
since then I get this error
laravel\vendor\captcha-com\captcha\lib\botdetect\CaptchaIncludes.php
count(): Parameter must be an array or an object that implements Countable (View: laravel\resources\views\auth\login.blade.php)
How to solve this please?
It would be nice to be able to reuse this source code.
Did you consider adding a free software license?
I'm using PHP 7.2 with Laravel 5.6 I tried to follow the guide to install but failed
composer require captcha-com/laravel-captcha:"4.2.5"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 2 installs, 0 updates, 0 removals
Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover
Discovered Package: barryvdh/laravel-ide-helper
Discovered Package: fideloper/proxy
Discovered Package: intervention/image
Discovered Package: laravel/passport
Discovered Package: laravel/tinker
Discovered Package: nwidart/laravel-modules
Discovered Package: unisharp/laravel-filemanager
Package manifest generated successfully.
Illuminate\Foundation\ComposerScripts::postUpdate
Then
In app.php providers:
LaravelCaptcha\Providers\LaravelCaptchaServiceProvider::class
php artisan vendor:publish
Which provider or tag's files would you like to publish?:
[0 ] Publish files from all providers and tags listed below
[1 ] Provider: Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider
[2 ] Provider: Fideloper\Proxy\TrustedProxyServiceProvider
[3 ] Provider: Illuminate\Mail\MailServiceProvider
[4 ] Provider: Illuminate\Notifications\NotificationServiceProvider
[5 ] Provider: Illuminate\Pagination\PaginationServiceProvider
[6 ] Provider: Intervention\Image\ImageServiceProviderLaravel5
[7 ] Provider: Laravel\Passport\PassportServiceProvider
[8 ] Provider: Laravel\Tinker\TinkerServiceProvider
[9 ] Provider: Modules\API\Providers\APIServiceProvider
[10] Provider: Modules\Banks\Providers\BanksServiceProvider
[11] Provider: Modules\Galleries\Providers\GalleriesServiceProvider
[12] Provider: Modules\Groups\Providers\GroupsServiceProvider
[13] Provider: Modules\Modules\Providers\ModulesServiceProvider
[14] Provider: Modules\News\Providers\NewsServiceProvider
[15] Provider: Modules\Pages\Providers\PagesServiceProvider
[16] Provider: Modules\PaymentMethods\Providers\PaymentMethodsServiceProvider
[17] Provider: Modules\Services\Providers\ServicesServiceProvider
[18] Provider: Modules\Settings\Providers\SettingsServiceProvider
[19] Provider: Modules\UserLog\Providers\UserLogServiceProvider
[20] Provider: Modules\Users\Providers\UsersServiceProvider
[21] Provider: Nwidart\Modules\LaravelModulesServiceProvider
[22] Provider: UniSharp\LaravelFilemanager\LaravelFilemanagerServiceProvider
[23] Tag: config
[24] Tag: laravel-mail
[25] Tag: laravel-notifications
[26] Tag: laravel-pagination
[27] Tag: lfm_config
[28] Tag: lfm_handler
[29] Tag: lfm_public
[30] Tag: lfm_view
[31] Tag: passport-components
[32] Tag: passport-config
[33] Tag: passport-views
As you see can't find the captcha package
How to solve this?
I have an error of Japanese captcha code.
I cann't find the reason, sometime it's happen in recent days (i don't change anything):
Undefined offset: -1 {"exception":"[object] (ErrorException(code: 0): Undefined offset: -1 at .../vendor/captcha-com/captcha/lib/botdetect/CaptchaIncludes.php:2)
Please help me to fix this issue, this is very important to me.
Thanks & Regards.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.