mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-16 06:22:59 +00:00
pass note arg in User.new_api_token
This commit is contained in:
@@ -160,7 +160,7 @@ class User(Base):
|
|||||||
|
|
||||||
If `token` is given, load that token.
|
If `token` is given, load that token.
|
||||||
"""
|
"""
|
||||||
return APIToken.new(token=token, user=self, note='', generated=generated)
|
return APIToken.new(token=token, user=self, note=note, generated=generated)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def find(cls, db, name):
|
def find(cls, db, name):
|
||||||
|
Reference in New Issue
Block a user