mirror of
https://github.com/langgenius/dify.git
synced 2026-04-07 03:00:34 -04:00
Update web/app/account/oauth/authorize/page.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -71,6 +71,8 @@ export default function OAuthAuthorize() {
|
||||
const isLoading = isOAuthLoading || isIsLoginLoading
|
||||
const isActionDisabled = !client_id || !redirect_uri || isError || isLoading || authorizing
|
||||
const onLoginSwitchClick = () => {
|
||||
if (isLoading)
|
||||
return
|
||||
try {
|
||||
const returnUrl = buildReturnUrl('/account/oauth/authorize', `?client_id=${encodeURIComponent(client_id)}&redirect_uri=${encodeURIComponent(redirect_uri)}`)
|
||||
setPostLoginRedirect(returnUrl)
|
||||
|
||||
Reference in New Issue
Block a user