mirror of
https://github.com/wassname/flask-security.git
synced 2026-09-09 11:22:35 +08:00
Enable ‘next’ redirection after registration.
This commit is contained in:
@@ -122,7 +122,7 @@ def register():
|
||||
login_user(user)
|
||||
|
||||
if not request.json:
|
||||
return redirect(get_post_register_redirect())
|
||||
return redirect(get_post_register_redirect(form.next.data))
|
||||
return _render_json(form, include_auth_token=True)
|
||||
|
||||
if request.json:
|
||||
|
||||
Reference in New Issue
Block a user