Hello Tristan,
> I have been testing a few things out regarding securing pages (and
> unsecuring them).
I've had the same problem, and implemented it in a similar way as you
did. The only thing that if a user is authenticated you have to clear
authentication too before going to the unsecure page.
Like this:
def sign_out(self, url):
"""(url:str)
Un-authenticate the current user and redirect to an
insecure `url`.
"""
get_session().clear_authentication()
self.insecure(url)
Regards,
Maas-Maarten Zeeman