use redirect, not redirect_url.

This commit is contained in:
Dan Funk 2020-05-26 15:09:57 -04:00
parent eb92ee9fb6
commit 987790164e
2 changed files with 3 additions and 3 deletions

View File

@ -56,7 +56,7 @@ paths:
required: false
schema:
type: string
- name: redirect_url
- name: redirect
in: query
required: false
schema:

View File

@ -126,7 +126,7 @@ def backdoor(
first_name=None,
last_name=None,
title=None,
redirect_url=None,
redirect=None,
):
"""A backdoor for end-to-end system testing that allows the system to simulate logging in as a specific user.
Only works if the application is running in a non-production environment.
@ -151,6 +151,6 @@ def backdoor(
if not 'PRODUCTION' in app.config or not app.config['PRODUCTION']:
ldap_info = LdapService().user_info(uid)
return _handle_login(ldap_info, redirect_url)
return _handle_login(ldap_info, redirect)
else:
raise ApiError('404', 'unknown')