PHP code example of sonhineboy / dcatadminlogincaptcha
1. Go to this page and download the library: Download sonhineboy/dcatadminlogincaptcha library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sonhineboy / dcatadminlogincaptcha example snippets
'login-captcha' => [
'enable' => true, //是否开启
'maxAttempts'=>10 ,//密码错误尝试次数
'decayMinutes'=>10 , //超过尝试次数后间隔时间
'config' => [
'v5' =>[ //key不允许改变
'enable' => true,//是否开启
'host' => '...',
'token' => '...',
'app_id'=> '...',
'app_key'=> '..',
'name' => 'login-v5'//对应字段的name
]
]
],