Giter VIP home page Giter VIP logo

dcatadminlogincaptcha's Introduction

描述 🛰️

是专门为 dcat-admin开发的扩展,主要功能有以下

  • 登录限流

    • 登录次数(可配置)
    • 如果超出登录次数间隔限制(可配置)
  • 验证码功能

    • verify5 (已集成)
  • 图形验证码(未集成)

    • 其它(陆续更新请持续关注)

如果喜欢请 猛击star

依赖

  • "php" : ">=7.1.0",
  • "dcat/laravel-admin" : "*",
  • "guzzlehttp/guzzle" : "~6.5"

使用方法:crossed_fingers:

  • 1、composer 安装
composer require sonhineboy/dcatadminlogincaptcha
  • 2、配置文件配置
    • config/admin-extensions.php 里添加
'login-captcha' => [
        'enable' => true, //是否开启
    	'maxAttempts'=>10 ,//密码错误尝试次数
    	'decayMinutes'=>10 , //超过尝试次数后间隔时间
        'config' => [
            'v5' =>[ //key不允许改变
                'enable' => true,//是否开启
                'host'  => '...', 
                'token' => '...',
                'app_id'=> '...',
                'app_key'=> '..',
                'name'   => 'login-v5'//对应字段的name
            ]
        ]
    ],
  • 3、效果

dcatadminlogincaptcha's People

Contributors

sonhineboy avatar

Stargazers

sm11a avatar

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.