Permalink
Browse files

Render auth token when registering a use with JSON

  • Loading branch information...
1 parent 6e461a8 commit af8e9f7ca5a70746f1c8dd125f2702960278f223 @mattupstate committed Dec 19, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 flask_security/views.py
View
@@ -123,6 +123,7 @@ def register():
if not request.json:
return redirect(get_post_register_redirect())
+ return _render_json(form, True)
if request.json:
return _render_json(form)

0 comments on commit af8e9f7

Please sign in to comment.