-
Notifications
You must be signed in to change notification settings - Fork 2.5k
fix: authentication redirection and UI #4432
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
Conversation
…nto fix-authentication-ui
…to fix-authentication-ui
…to fix-authentication-ui
…to fix-authentication-ui
…to fix-authentication-ui
return HttpResponseRedirect(url) | ||
except Exception: | ||
return HttpResponseRedirect( | ||
base_host(request=request, is_admin=True), "accounts/sign-in" | ||
base_host(request=request, is_admin=True) |
Check warning
Code scanning / CodeQL
URL redirection from remote source
base_host(request=request, is_space=True), | ||
"accounts/sign-in?" + urlencode({"success": True}), | ||
return HttpResponseRedirect( | ||
base_host(request=request, is_space=True) |
Check warning
Code scanning / CodeQL
URL redirection from remote source
return HttpResponseRedirect(url) | ||
except Exception: | ||
return HttpResponseRedirect( | ||
base_host(request=request), "accounts/sign-in" | ||
base_host(request=request, is_app=True), "sign-in" |
Check warning
Code scanning / CodeQL
URL redirection from remote source
base_host(request=request, is_space=True), | ||
"accounts/sign-in?" + urlencode({"success": "true"}), | ||
return HttpResponseRedirect( | ||
base_host(request=request, is_space=True) |
Check warning
Code scanning / CodeQL
URL redirection from remote source
except Exception: | ||
return HttpResponseRedirect( | ||
base_host(request=request, is_space=True), "accounts/sign-in" | ||
base_host(request=request, is_space=True) |
Check warning
Code scanning / CodeQL
URL redirection from remote source
@@ -47,8 +47,8 @@ | |||
console.log("Failed to update onboarding status"); | |||
}); | |||
|
|||
if (next_path) router.replace(next_path.toString()); | |||
router.replace("/"); | |||
if (next_path) router.push(next_path.toString()); |
Check failure
Code scanning / CodeQL
Client-side cross-site scripting
@@ -47,8 +47,8 @@ | |||
console.log("Failed to update onboarding status"); | |||
}); | |||
|
|||
if (next_path) router.replace(next_path.toString()); | |||
router.replace("/"); | |||
if (next_path) router.push(next_path.toString()); |
Check warning
Code scanning / CodeQL
Client-side URL redirect
fix: