Skip to content

Commit

Permalink
director: fix message when user authentication fails
Browse files Browse the repository at this point in the history
  • Loading branch information
tcrivat committed Jul 24, 2016
1 parent 3ab024c commit 76a0550
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion conpaas-director/cpsdirector/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ def decorated_view(*args, **kwargs):
return fn(*args, **kwargs)

# authentication failed
return build_response(simplejson.dumps(False))
msg = "User authentication failed"
log_error(msg)
return build_response(jsonify(error_response(msg)))

return decorated_view

Expand Down

0 comments on commit 76a0550

Please sign in to comment.