Format authentication error messages for the client.

This commit is contained in:
Rebecca Law
2016-03-14 15:51:04 +00:00
parent 2982c51e83
commit fe9bf13064
2 changed files with 12 additions and 12 deletions

View File

@@ -9,9 +9,9 @@ from functools import wraps
def authentication_response(message, code):
current_app.logger.info(message)
return jsonify(
error=message
), code
return jsonify(result='error',
message=message
), code
def requires_auth():