Hi,
I want to protect a complete page with a password. I decided to follow the steps that are explained here: https://getkirby.com/docs/cookbook/security/access-restriction. Both the login and logout seem to work without any problems. Then I decided to add ‘<?php if (!$kirby->user()) go('/') ?>’ to site/template/member.php to protect my member page. Sadly this does not seem to work at all. It does not matter if I am logged in or not, i can visit the site.
Even if a have an otherwise empty template, shouldn’t ‘<?php if (!$kirby->user()) go('/') ?>’ on its own work?!
Sadly this is my first time using php, so please be patient with me.
Regards
Nick