When I navigate to a private page, i am shown the login form as i would expect, this then shows me a login status in my nav (code below) once logged in
The button i am presented with states log out but it does not work, I do not know how to fix this can anyone help?
how can i log out a front end user?
i have inserted this code into my nav bar
{% if grav.user.username %}
{% endif %}
which will load this from the login plugin
{% if grav.user.authenticated %}
{{ grav.user.fullname ?: grav.user.username }}, {{ ‘PLUGIN_LOGIN.BTN_LOGOUT’|t }}
{% endif %}
and on my page i added
access:
site.ambassador: true
login:
visibility_requires_access: true