shanerutter/laravel-admin-google-recaptcha

Add google captcha and login attempts to laravel-admin

1.1 2022-02-15 15:44 UTC

This package is auto-updated.

Last update: 2024-05-15 20:59:57 UTC


README

Add google recaptcha v3 and login attempts to laravel-admin

Installation

composer require shanerutter/laravel-admin-google-recaptcha

Configuration

In the extensions section of the config/admin.php file, add configurations

'extensions' => [
    'auth-google-recaptcha' => [
        'enable' => (bool)env('ADMIN_RECAPTCHA_ENABLED', true),
        'maxAttempts' => 5,
        'decayMinutes' => 5,
        'recaptchaPublicKey' => env('ADMIN_RECAPTCHA_SITE_KEY', ''),
        'recaptchaPrivateKey' => env('ADMIN_RECAPTCHA_SECRET_KEY', ''),
    ]
]

In the .env file, add configurations

ADMIN_RECAPTCHA_ENABLED=true
ADMIN_RECAPTCHA_SITE_KEY="...."
ADMIN_RECAPTCHA_SECRET_KEY="...."

License

Licensed under The MIT License (MIT).