mirror of
https://github.com/wassname/flask-security.git
synced 2026-06-28 16:20:24 +08:00
Pass 'next' url to form context variable
This commit is contained in:
@@ -76,6 +76,8 @@ def login():
|
||||
if not request.json:
|
||||
return redirect(get_post_login_redirect())
|
||||
|
||||
form.next.data = request.args.get('next') or request.form.get('next') or ''
|
||||
|
||||
if request.json:
|
||||
return _render_json(form, True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user