Merge pull request #245 from mikegrima/issue243

Removed deprecated auth api endpoint.
This commit is contained in:
kevgliss 2016-02-16 17:11:41 -08:00
commit edba980b56
1 changed files with 1 additions and 4 deletions

View File

@ -9,7 +9,7 @@ import jwt
import base64 import base64
import requests 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.restful import reqparse, Resource, Api
from flask.ext.principal import Identity, identity_changed from flask.ext.principal import Identity, identity_changed
@ -100,9 +100,6 @@ class Login(Resource):
return dict(message='The supplied credentials are invalid'), 401 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): class Ping(Resource):
""" """