zekinah / magento2-required-login

A Magento2 module that requires the customer to login first before accessing the whole site.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Magento 2 Required Login

This module requires the customer to login first before accessing the whole site.

zone_required_login_configuration

Features

Backend

  • Go to Store > Configuration > Zone > Customer Required Login
    • General
      • Module Enable (On and Off the module)
    • Configuration
      • Base Target URL (default url of login site)
      • White List CMS Pages
    • Warning Message
      • Notification (Output a notification when the direct access on the other page was triggered.)

Default Whitelisted Pages and Action

  • Customer's Registration Page
  • Forgot Password Page
  • Administrator Login Page
  • Logout Redirection
  • Stripe Webhooks

Installation

Copy the content of the repository to the app/code/Zone/RequiredLogin/ folder

Enable module:

php bin/magento module:enable Zone_RequiredLogin

Disable module: (Optional)

php bin/magento module:disable Zone_RequiredLogin --clear-static-content

Update system:

php bin/magento setup:upgrade
php bin/magento cache:flush
php bin/magento cache:clean

Debugging

  • To check the values setting:
    • Disable the module through backend, and visit [yoursite.com]/requiredlogin/index/config
  • To check the page that the customers trying to access directly:
    • Go to var/log/ and open system.log and you will see, Zone_RequiredLogin Blocked : [action]

Author

License

Open Software License (OSL 3.0)

About

A Magento2 module that requires the customer to login first before accessing the whole site.

License:Open Software License 3.0


Languages

Language:PHP 100.0%