Add missing return code.
This commit is contained in:
parent
2cccb07c3d
commit
3927f7e398
@ -123,7 +123,7 @@ class LoginResource(Resource):
|
||||
@requires_auth
|
||||
@marshal_with_field(Object(user_resource_fields))
|
||||
def get(self):
|
||||
return g.user
|
||||
return g.user, 200
|
||||
|
||||
|
||||
api.add_resource(LoginResource, "/user/login")
|
||||
|
Loading…
Reference in New Issue
Block a user