Merge pull request #245 from mikegrima/issue243
Removed deprecated auth api endpoint.
This commit is contained in:
commit
edba980b56
|
@ -9,7 +9,7 @@ import jwt
|
|||
import base64
|
||||
import requests
|
||||
|
||||
from flask import g, Blueprint, current_app
|
||||
from flask import Blueprint, current_app
|
||||
|
||||
from flask.ext.restful import reqparse, Resource, Api
|
||||
from flask.ext.principal import Identity, identity_changed
|
||||
|
@ -100,9 +100,6 @@ class Login(Resource):
|
|||
|
||||
return dict(message='The supplied credentials are invalid'), 401
|
||||
|
||||
def get(self):
|
||||
return {'username': g.current_user.username, 'roles': [r.name for r in g.current_user.roles]}
|
||||
|
||||
|
||||
class Ping(Resource):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue