Skip to content

feat: add LogistrationContextRequested and PostLoginRedirectURLRequested filters#337

Draft
pwnage101 wants to merge 1 commit intoopenedx:mainfrom
pwnage101:pwnage101/ENT-11568
Draft

feat: add LogistrationContextRequested and PostLoginRedirectURLRequested filters#337
pwnage101 wants to merge 1 commit intoopenedx:mainfrom
pwnage101:pwnage101/ENT-11568

Conversation

str: the (possibly modified) redirect URL.
"""
data = super().run_pipeline(redirect_url=redirect_url, user=user, next_url=next_url)
return data.get("redirect_url")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's unconventional for the return signature to differ from the arguments signature. Better would be:

Suggested change
return data.get("redirect_url")
return data.get("redirect_url"), data.get("user"), data.get("next_url")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant