Toto 1.0.10 documentation

toto.methods.account.logout

Contents

Source code for toto.methods.account.logout

from toto.invocation import *

@authenticated
[docs]def invoke(handler, parameters): '''Invalidates the current authenticated session. If the request is not authenticated, a "Not authorized" error will be returned. ''' handler.db_connection.remove_session(handler.session.session_id) return {'authenticated': False}

Contents