示例#1
0
 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'}
示例#2
0
 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'}
示例#3
0
 def delete(self):
     auth.logout()
     del flask.session['user']
     flask.g.user = None
     flask.g.team = None
     return {'message': 'OK'}