mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-07-16 05:13:36 +00:00
feat: improve admin settings and user profile
This commit is contained in:
@@ -130,7 +130,14 @@ export function AdminSettings({
|
||||
Promise.allSettled([
|
||||
getAdminOIDCConfig()
|
||||
.then((res) => {
|
||||
if (res) setOidcConfig(res);
|
||||
if (res)
|
||||
setOidcConfig((prev) => ({
|
||||
...prev,
|
||||
...res,
|
||||
identifier_path: (res.identifier_path as string) || "sub",
|
||||
name_path: (res.name_path as string) || "name",
|
||||
scopes: (res.scopes as string) || "openid email profile",
|
||||
}));
|
||||
})
|
||||
.catch((err) => {
|
||||
if (!err.message?.includes("No server configured")) {
|
||||
|
||||
Reference in New Issue
Block a user