Download the PHP package nojimage/cakephp-login-attempts without Composer
On this page you can find all versions of the php package nojimage/cakephp-login-attempts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nojimage/cakephp-login-attempts
More information about nojimage/cakephp-login-attempts
Files in nojimage/cakephp-login-attempts
Package cakephp-login-attempts
Short Description LoginAttempts plugin for CakePHP
License MIT
Informations about the package cakephp-login-attempts
LoginAttempts plugin for CakePHP
Requirements
- CakePHP >= 5.0
- CakePHP Authentication plugin
Installation
You can install this plugin into your CakePHP application using composer.
The recommended way to install composer packages is:
Load plugin
Load the plugin by adding the following statement in your project's src/Application.php
:
Create table
run migration command:
Usage
Use LoginAttempts.Form
authenticator instead of Form
.
If use are using Authentication plugin:
LoginAttempts.Form Options
attemptLimit
If the num of login failures of the user exceeds attemptLimit
during attemptDuration
,
the user's login is not permitted.
default: 5
attemptDuration
If the num of login failures of the user 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 a failure login and check count of failure login.
default: 'LoginAttempts.Attempts'