magento2-force-login icon indicating copy to clipboard operation
magento2-force-login copied to clipboard

[improve] Add field on CMS pages to authorize them to not force login

Open nelero opened this issue 4 years ago • 2 comments

For us, module is used to prevent catalog access (categories pages, products pages, searches, cart) for not logged in users. All pages allowed are :

  • homepage
  • account pages (login, passwordreset, create,...)
  • all cms pages

But everytime we add a CMS page, we need to add its url in the whitelist. We have more than 100 pages in CMS pages and they are not having a specific word in their url. So we have to manually add them in the whitelist (and not forget to add them on creation process) It's time consuming and source for errors for contributors.

We should have a field on cms page creation (boolean field) to authorize page to not force login.

nelero avatar Mar 22 '20 17:03 nelero

And we should have some options to whitelist or "force login" type of pages instead of urls : Magento knows the type of the page visited (home, cms, product, category, search results, cart) so we could have a flexible way to isolate specific type of pages even they don't have a common element in their url.

Thanks

nelero avatar Mar 22 '20 17:03 nelero

Thanks for this idea. It might make sense to add a feature like this. When we started developing this module a few years back we had only merchants with just a few pages.

shochdoerfer avatar Apr 14 '20 14:04 shochdoerfer