bitexpert/magento2-force-customer-login 1.1.1

Magento2 Module to force the login for frontend customers.

Type

magento2-module

License

Apache-2.0

Requires
Requires (dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

Magento2 Force Frontend Customer Login Module

The Magento2 Force Frontend Customer Login Module redirects a storefront visitor to the Magento2 Frontend login page, if the visitor is not logged in. It is possible to configure the whitelisted urls to add custom definitions.

Installation

The preferred way of installing bitexpert/magento2-force-customer-login is through Composer. Simply add bitexpert/magento2-force-customer-login as a dependency:

composer.phar require bitexpert/magento2-force-customer-login

How to configure the module

Navigation

Navigating through the Magento 2 backend menu by clicking onto Customers you must see a new menu entry Forced Login Whitelist. Enter this menu entry.

alt text

Overview Grid

You can add new entries by clicking on the Add Entry button in the upper right corner ( 1 ), see below. The grid ( 2 ) contains all existing whitelisted Url Rules, for which the forced redirect to the Customer Login Page is omitted. The Url Rules ( 3 ) are part of a regular expression checking on the called Url and tries to match against the whitelist. Url Rules may be related to all stores or to a specific one ( 4 ). All rules except some mandatory ones are editable ( 5 ) and removeable ( 6 ).

alt text

Detail Form

You can return to the Overview Grid by using the Back button ( 1 ). The Label value has only declarative character and is for information purpose only ( 2 ). The Url Rule is part of a regular expression checking on the called Url and tries to match against the whitelist ( 3 ). Url Rules may be related to all stores or to a specific one ( 4 ). Persist the rule by using the Save button ( 5 ).

alt text

Contribution

Feel free to contribute to this module by reporting issues or create some pull requests for improvements.

License

The Magento2 Frontend Customer Force Login Module is released under the Apache 2.0 license.