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.1
- CakePHP Authentication plugin 3.x or 4.x
Installation
You can install this plugin into your CakePHP application using composer.
The recommended way to install composer packages is:
Load plugin
Run the following command:
Create table
Run migration command:
Usage
Use LoginAttempts.Form authenticator instead of Form.
If you are using Authentication plugin:
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'
All versions of cakephp-login-attempts with dependencies
cakephp/authentication Version ^3.3.6 || ^4.1.1
cakephp/cakephp Version ^5.1.10