Remove auth state from user's self handler

This commit is contained in:
Tim Head
2018-03-26 10:18:21 +02:00
parent 0d57baae82
commit bf7afa16e5
2 changed files with 1 additions and 4 deletions

View File

@@ -24,9 +24,7 @@ class SelfAPIHandler(APIHandler):
user = self.get_current_user_oauth_token()
if user is None:
raise web.HTTPError(403)
user_ = self.user_model(user)
user_['auth_state'] = await user.get_auth_state()
self.write(json.dumps(user_))
self.write(json.dumps(self.user_model(user)))
class UserListAPIHandler(APIHandler):

View File

@@ -18,7 +18,6 @@ import jupyterhub
from .. import orm
from ..user import User
from ..utils import url_path_join as ujoin
from ..utils import maybe_future
from . import mocking
from .mocking import public_host, public_url
from .utils import async_requests