Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #526 from shipperizer/fix/json_error_code
Browse files Browse the repository at this point in the history
[fix] returning proper error code
  • Loading branch information
Matt Wright committed Jan 16, 2017
2 parents e8222df + 30b787b commit eb811e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_security/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def _render_json(form, include_user=True, include_auth_token=False):
token = form.user.get_auth_token()
response['user']['authentication_token'] = token

return jsonify(dict(meta=dict(code=code), response=response))
return jsonify(dict(meta=dict(code=code), response=response)), code


def _commit(response=None):
Expand Down

0 comments on commit eb811e6

Please sign in to comment.