Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(recovery): 🩹 automatic mode #1223

Closed
wants to merge 1 commit into from
Closed

Conversation

whizzzkid
Copy link
Contributor

Fixes: #1204

const badOriginRedirect = originUrl.includes(state.gwURL.host) && !redirectUrl.includes('recovery')
const localOriginRedirect = isLocalHost(originUrl) && !isLocalHost(redirectUrl)
// if the redirect is to the gateway and the automatic mode is off, we would like to present the recovery page.
// in case automatic mode is on, we would like to redirect to the public gateway.
Copy link
Member

Choose a reason for hiding this comment

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

I don't think the status of automatic mode should impact/bypass the recovery page – we don't want to blindly redirect users to third-party server – see #1204 (comment)

@whizzzkid
Copy link
Contributor Author

Closing this as discussed here: #1204 (comment)

@whizzzkid whizzzkid closed this Jun 21, 2023
@whizzzkid whizzzkid deleted the fix/automatic-mode branch July 28, 2023 07:49
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.

2 participants