fix: Add error logging for OIDC configuration retrieval

This commit is contained in:
1808837298@qq.com
2025-03-11 23:20:27 +08:00
parent 0033f5ba2e
commit 20e34bec7e

View File

@@ -8,7 +8,7 @@ import {
Message,
Modal,
} from 'semantic-ui-react';
import { API, removeTrailingSlash, showError, verifyJSON } from '../helpers';
import { API, removeTrailingSlash, showError, showSuccess, verifyJSON } from '../helpers';
import { useTheme } from '../context/Theme';
@@ -313,6 +313,7 @@ const SystemSetting = () => {
inputs['oidc.user_info_endpoint'] = res.data['userinfo_endpoint'];
showSuccess('获取 OIDC 配置成功!');
} catch (err) {
console.error(err);
showError("获取 OIDC 配置失败,请检查网络状况和 Well-Known URL 是否正确");
}
}