Code Monkey home page Code Monkey logo

laravel-captcha's People

Contributors

botdetect-support avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

laravel-captcha's Issues

Buffer Overflow Errors

Using owasp to test application vulnerability, captcha is generating a buffer overflow error. How could we prevent this error?

Laravel 5.6 can't publish and can't find captcha.php config

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

  • Installing captcha-com/captcha (4.2.3): Cloning 66b498a523 from cache
  • Installing captcha-com/laravel-captcha (4.2.5): Downloading (100%)
    captcha-com/captcha suggests installing captcha-com/cakephp-captcha (BotDetect 4 PHP Captcha generator integration for the CakePHP framework.)
    captcha-com/captcha suggests installing captcha-com/symfony-captcha-bundle (BotDetect 4 PHP Captcha generator integration for the Symfony framework.)
    Writing lock file
    Generating autoload files

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?

Use Laravel package discovery feature

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"
        ]
    }
},

count(): Parameter must be an array or an object that implements Countable (View: laravel\resources\views\auth\login.blade.php)

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?

Undefined variable: _SESSION

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.