mirror of
https://github.com/wassname/flask-security.git
synced 2026-09-11 12:11:25 +08:00
Convert all tests to use pytest. Phew!
This commit is contained in:
@@ -77,8 +77,9 @@ def login():
|
||||
if not request.json:
|
||||
return redirect(get_post_login_redirect())
|
||||
|
||||
form.next.data = get_url(request.args.get('next')) \
|
||||
or get_url(request.form.get('next')) or ''
|
||||
form.next.data = (get_url(request.args.get('next')) or
|
||||
get_url(request.form.get('next')) or
|
||||
'')
|
||||
|
||||
if request.json:
|
||||
return _render_json(form, True)
|
||||
|
||||
Reference in New Issue
Block a user