I have just started looking at web2py, so many things in the approach are nwe, such as the use of defaults for views etc. I spent many hours trying to figure out how to get people to log in and in the end put
@auth.requires_login()
at the start of a controller method. This magically brought up a registration form after which the new user was logged in. I am not sure I fully understand what is going on behind the scenes, but one step at a time.
However, I would like to provide a logout button and have no idea how that might be achieved. Clearly I need to somehow call the default logout. So I need to add a url to the submit form/button and presumably create a controller to match the url, but what will the method to logout look like?
In the user method are the exposes statements, but no idea what they mean or how to use them. All those dots confuse me.