Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

login.css usage based on route #273

Open
pierrejoye opened this issue Feb 9, 2021 · 2 comments
Open

login.css usage based on route #273

pierrejoye opened this issue Feb 9, 2021 · 2 comments

Comments

@pierrejoye
Copy link

Thank you for this plugin! great work!

While trying it together with the admin plugin, I see that login.css is added to all pages, systematically. I tracked it down to:

if (!$this->isAdmin() && $this->config->get('plugins.login.built_in_css')) {

Should it not be based on:
/admin and below ro

  • /admin specific routes
  • the different login pages only (forgot, reset, register etc)
  • protected pages only

?

If the above is the desired goal, I can work on a PR. Not sure if that css is needed for anything else on every page as in my case, it is not at all, with my themes or other. But I may miss something :)

@mahagr
Copy link
Member

mahagr commented Feb 9, 2021

The code says "not in admin and toggled on", so it is added to every page which is not in admin panel.

CSS should be probably in every page in case if you have login form in them. Or rather just turn it off and use your own CSS.

@pierrejoye
Copy link
Author

Yeah, also I am not sure it makes sense to add it all the time but when the page is actually loaded. This is what assets functions are for, here it always adds it, no matter what :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants