nojimage/cakephp-login-attempts 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

nojimage/cakephp-login-attempts

最新稳定版本:v3.3.0

Composer 安装命令:

composer require nojimage/cakephp-login-attempts

包简介

LoginAttempts plugin for CakePHP

README 文档

README

Software License Build Status Codecov Latest Stable Version

Requirements

Installation

You can install this plugin into your CakePHP application using composer.

The recommended way to install composer packages is:

composer require nojimage/cakephp-login-attempts:^3.0

Load plugin

Run the following command:

bin/cake plugin load LoginAttempts

Create table

Run migration command:

bin/cake migrations migrate -p LoginAttempts

Usage

Use LoginAttempts.Form authenticator instead of Form.

If you are using Authentication plugin:

$service->loadAuthenticator('LoginAttempts.Form', [
    'fields' => ['username' => 'email'],
    'attemptLimit' => 5,
    'attemptDuration' => '+5 minutes',
]);

LoginAttempts.Form Options

attemptLimit

If the number of login failures exceeds attemptLimit during attemptDuration, the user's login is not permitted.

default: 5

attemptDuration

If the number of login failures exceeds attemptLimit during attemptDuration, the user's login is not permitted.

default: '+5 minutes'

attemptAction

The number of attempts is stored separately for this key. Use when there are multiple login forms and you want to set restrictions separately.

default: 'login'

attemptsStorageModel

A model used for logging login failures and checking the count of failed login attempts.

default: 'LoginAttempts.Attempts'

统计信息

  • 总下载量: 14.58k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-06-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固