Remove unused functions.
This commit is contained in:
parent
5b1e3873e3
commit
b317249918
@ -10,19 +10,6 @@ from flask_restplus import Namespace, Resource, fields
|
|||||||
from ..models.users import User
|
from ..models.users import User
|
||||||
|
|
||||||
|
|
||||||
def load_user_from_token(token):
|
|
||||||
"""Load user from token."""
|
|
||||||
|
|
||||||
return User.verify_auth_token(token)
|
|
||||||
|
|
||||||
|
|
||||||
def load_user_from_auth(auth):
|
|
||||||
"""Load a user from authenticated session."""
|
|
||||||
|
|
||||||
token = auth.replace('Bearer ', '', 1)
|
|
||||||
return load_user_from_token(token)
|
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=invalid-name
|
# pylint: disable=invalid-name
|
||||||
ns = Namespace('user', description='User management')
|
ns = Namespace('user', description='User management')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user