|Reported by:||Olivier Mehani||Owned by:|
Here is a first cut at requiring login before seeing content.
It adds a configuration option,
require_login, which, if set, prevents media and listings from being displayed to anonymous visitors.
It also doesn't output any entry in the RSS feed, which could otherwise be used to discover paths to the media.
I realised fairly late that this sort of behaviour could be implemented through decorators (probably as a light superset to
@require_active_login, checking the config). At the moment, this is mostly implemented within the Jinja templates, rendering login pages where listings should be, rather than blocking the entire page.
Let's discuss what the best approach is!
Change History (8)
by , 3 years ago