mirror of
https://github.com/sartography/cr-connect-workflow.git
synced 2025-02-21 20:28:10 +00:00
use redirect, not redirect_url.
This commit is contained in:
parent
eb92ee9fb6
commit
987790164e
@ -56,7 +56,7 @@ paths:
|
||||
required: false
|
||||
schema:
|
||||
type: string
|
||||
- name: redirect_url
|
||||
- name: redirect
|
||||
in: query
|
||||
required: false
|
||||
schema:
|
||||
|
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user