Showing only login form and not any content without login?

pdp7
Losing Braincells
  • 21 Nov '18

Is there anyway to make forum hidden from not logged in connections? It would be something I'd appreciate. Tried Apache password thingie, but it doesn't work correctly.

Still get content and can login and all, but without CSS.

If you have some easy way to do this, it would be wonderful!

Thanks!

nitely
Esteban Castro Borsani
  • 21 Nov '18

Yes, there is an easy way. Set ST_PRIVATE_FORUM setting to True.

docs: https://spirit.readthedocs.io/en/latest/settings.html#spirit.core.conf.defaults.ST_PRIVATE_FORUM

pdp7
Losing Braincells
  • 21 Nov '18

Thanks a lot for this! Somehow this haven't catch the keen eye of servergeek :D

  • 23 Aug '19

This doesn't seem to work at the moment. Fresh install, Python 3.7, Django 2.2, Spirit 0.7.1

nitely
Esteban Castro Borsani
  • 25 Aug '19

It works for me, I just tried it. The server must be restarted after changing the settings/base.py file. If it does not work for you, then describe the steps to reproduce the issue.