Testing the logout function with this code:
# server.py
def login():
"""Authenticate users"""
email_addr = post_get('email')
password = post_get('password')
username = post_get('username')
aaa.login(username, password, success_redirect='/dash', fail_redirect='/login')
@bottle.route('/logout')
def logout():
aaa.logout(success_redirect='/', fail_redirect='/login')
# dash.html
<form>
<button type="submit" class="btn"><a href="/logout">Logout</a></button>
</form>
* re-directs successfully to /dash, POST 303, but
* fails to re-direct to '/' but instead re-directs to '/login', POST 303
Did I miss something?