2017 © Pedro Peláez
 

library lockout-authentication

Simple authenticator with lockout.

image

jandreasn/lockout-authentication

Simple authenticator with lockout.

  • Wednesday, July 26, 2017
  • by jandreasn
  • Repository
  • 1 Watchers
  • 0 Stars
  • 17,677 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 6 % Grown

The README.md

Lockout Authenticator

Latest Stable Version, (*1)

This simple PHP authenticator uses the built-in PHP password hashing and verification functions to authenticate user objects implementing the provided interface. It has a lockout mechanism preventing users from logging in for a few seconds after they failed to login multiple times, making brute force attacks less effective., (*2)

Installation

Add the package as a requirement to your composer.json:, (*3)

$ composer require andreasnij/lockout-authenticator

Usage


use LockoutAuthentication\Authenticator; $authenticator = new Authenticator(); if ($authenticator->authenticate($user, $_POST['password'])) { // Place code to login user here echo 'You are now logged in!'; } elseif ($authenticator->isLoginBlocked()) { echo 'Your account has temporarily been locked due to multiple ' . 'failed login attempts. Try again later.'; } else { echo 'The username or password is incorrect!'; } // Place code to save the $user object to persistent storage here

Requirements

  • Lockout Authenticator requires PHP 7.4 or above.

Author

Andreas Nilsson http://github.com/andreasnij, (*4)

License

Lockout Authenticator is licensed under the MIT License - see the LICENSE file for details., (*5)

The Versions

26/07 2017

dev-master

9999999-dev http://github.com/jandreasn/lockout-authentication

Simple authenticator with lockout.

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

authentication authenticator

07/06 2015

1.0.0

1.0.0.0 http://github.com/jandreasn/lockout-authentication

Simple authenticator with lockout.

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

authentication authenticator