Download the PHP package warleyelias/customer-login without Composer
On this page you can find all versions of the php package warleyelias/customer-login. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download warleyelias/customer-login
More information about warleyelias/customer-login
Files in warleyelias/customer-login
Package customer-login
Short Description The Customer Login module provides the ability lock a customer account in magento 2
License MIT
Informations about the package customer-login
How to lock a customer account in magento 2
-
When you work on a project, the client requires you to block a customer account from the backend, the client means preventing them from using their account. Then the customer can't be able to log in to their account. By default, Magento hasn't this functionality. You don't know how to complete this task, you are searching for a good solution. Today I show you the best codes to complete your task.
- We have the scenario: We will create a new customer attribute called "Blocked", it will have two options (Yes/No). If this attribute is set to "Yes" when a customer tries to log in, they will get an inform similar to this "Your account is blocked for the security reason, please contact us for details."
Screenshot

See the video How to lock a customer account in magento 2 here.
https://www.youtube.com/watch?v=tBGagDLXUAQ&list=PL98CDCbI3TNvPczWSOnpaMoyxVISLVzYQ
How to add a new dynamic row system configuration in the Magento 2 admin.
https://www.youtube.com/watch?v=GZ-I9SdGLT0&list=PL98CDCbI3TNvPczWSOnpaMoyxVISLVzYQ
After instalation execute the query to change the source model to your attribute
This is to not impact when you generate an image that is direct connect to your production BD, so after deploy you need to change the source_model for attribute reason