Download the PHP package melk/extended-login-bundle without Composer
On this page you can find all versions of the php package melk/extended-login-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download melk/extended-login-bundle
More information about melk/extended-login-bundle
Files in melk/extended-login-bundle
Package extended-login-bundle
Short Description Provides extended login form with captcha for several sequences failed login attempts.
License MIT
Informations about the package extended-login-bundle
MelkExtendedLoginBundle
About
This bundle allows you to use extended login form with captcha when several sequenced failed login attempts received from one IP address.
Installation
Step 1
Simply install it via composer:
composer require melk/extended-login-bundle
Step 2
Enable bundle and it's dependencies in the AppKernel
:
Configuration
Gregwar captcha
Gregwar captcha bundle configuration can be found here
Snc redis
General configuration info for snc redis bundle can be found here
Extened login bundle requires snc client configuration, for example:
Extended login bundle
You can use it without any additional configuration. List of all options with default values:
Usage
Enabling form
Simply change your firewall settings changing form_login to melk_form_login. No additional configuration required:
All other options inherited from the basic Symfony form_login
Accessing captcha info
Bundle provides you melk_extended_login.service.captcha_login_service
which allows to check if captcha required and get captcha image url:
Authentication Failure Handler
Bundle provides own authentication failure handler, which will return JsonResponse
with next
keys: success
, message
and optional captcha
(captcha url if captcha required) in case
when request sent via AJAX (it is XmlHttpRequest
). In all other cases this handler acts as
default form login authentication failure handler.
All versions of extended-login-bundle with dependencies
symfony/security-bundle Version ~2.0|~3.4|~4.0
gregwar/captcha-bundle Version ~2.0
snc/redis-bundle Version ~2.0