Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a280feea
authored
Mar 11, 2025
by
1808837298@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: Add error logging for OIDC configuration retrieval
parent
30d9f433
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
web/src/components/SystemSetting.js
+2
-1
No files found.
web/src/components/SystemSetting.js
View file @
a280feea
...
@@ -8,7 +8,7 @@ import {
...
@@ -8,7 +8,7 @@ import {
Message
,
Message
,
Modal
,
Modal
,
}
from
'semantic-ui-react'
;
}
from
'semantic-ui-react'
;
import
{
API
,
removeTrailingSlash
,
showError
,
verifyJSON
}
from
'../helpers'
;
import
{
API
,
removeTrailingSlash
,
showError
,
showSuccess
,
verifyJSON
}
from
'../helpers'
;
import
{
useTheme
}
from
'../context/Theme'
;
import
{
useTheme
}
from
'../context/Theme'
;
...
@@ -313,6 +313,7 @@ const SystemSetting = () => {
...
@@ -313,6 +313,7 @@ const SystemSetting = () => {
inputs
[
'oidc.user_info_endpoint'
]
=
res
.
data
[
'userinfo_endpoint'
];
inputs
[
'oidc.user_info_endpoint'
]
=
res
.
data
[
'userinfo_endpoint'
];
showSuccess
(
'获取 OIDC 配置成功!'
);
showSuccess
(
'获取 OIDC 配置成功!'
);
}
catch
(
err
)
{
}
catch
(
err
)
{
console
.
error
(
err
);
showError
(
"获取 OIDC 配置失败,请检查网络状况和 Well-Known URL 是否正确"
);
showError
(
"获取 OIDC 配置失败,请检查网络状况和 Well-Known URL 是否正确"
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment