def delete(self): auth.logout() if flask.session.get('user', None): app.logger.info('%r logging out.', models.User.current()) flask.session.clear() try: del flask.g.user except: pass try: del flask.g.team except: pass return {'message': 'OK'}
def delete(self): auth.logout() del flask.session['user'] flask.g.user = None flask.g.team = None return {'message': 'OK'}