lyne007/auth-recaptcha

Add Google reCAPTCHA for laravel-admin.

v1.0 2022-02-14 10:09 UTC

This package is auto-updated.

Last update: 2024-04-15 07:05:28 UTC


README

Add Google reCAPTCHA(no perception) for laravel-admin

Screenshot

img.png

Installation

composer require lyne007/auth-recaptcha

Configuration

  1. In the extensions section of the config/admin.php file, add configurations
'extensions' => [
    'auth-recaptcha' => [
        // set to false if you want to disable this extension
        'enable' => true,
        // set to false if you want to disable icon
        'iconDisplay' => true,
        // reCAPTCHA:v3 keys  
        'siteKey' => 'your google reCAPTCHA site key',
        'secretKey'  => 'your google reCAPTCHA secret key',
    ]
],

Register and get reCAPTCHA keys; https://www.google.com/recaptcha

  1. Exclude CAPTCHA Interface Restrictions In the excepts section of the config/admin.php file, add configurations
'excepts' => [
    'auth/login',
    'auth/logout',
    // add
    'auth/api/recaptcha' 
],

Usage

Open your login page in your browser

License

Licensed under MIT License