Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: prevent redirects to /undefined after saml auth
When a user authenticates using SAML, but their accounts aren't linked, they land on the login page with the message to link their accounts. If the OC_REDIRECT_ON_TPA_UNLINKED_ACCOUNT value is not setup, they end up getting redirected to /undefined. This commit validates the redirectURL as a valid string before performing the redirect. Internal-ref: https://tasks.opencraft.com/browse/BB-9010
- Loading branch information