1
1
mirror of https://github.com/ZeroCatDev/ClassworksKV.git synced 2025-10-22 10:23:12 +00:00

添加OAuth提供者和用户资料中的网站字段

This commit is contained in:
SunWuyuan 2025-10-07 15:08:16 +08:00
parent 5435814cb6
commit f8f63d1ddd
No known key found for this signature in database
GPG Key ID: A6A54CF66F56BB64

View File

@ -58,6 +58,7 @@ router.get("/oauth/providers", (req, res) => {
description: config.description, description: config.description,
order: typeof config.order === 'number' ? config.order : 9999, order: typeof config.order === 'number' ? config.order : 9999,
authUrl: `/accounts/oauth/${key}`, // 前端用于发起认证的URL authUrl: `/accounts/oauth/${key}`, // 前端用于发起认证的URL
website: config.website,
}); });
} }
} }
@ -399,6 +400,7 @@ router.get("/profile", jwtAuth, async (req, res, next) => {
textColor: pconf.textColor || "#ffffff", textColor: pconf.textColor || "#ffffff",
description: pconf.description, description: pconf.description,
order: typeof pconf.order === 'number' ? pconf.order : undefined, order: typeof pconf.order === 'number' ? pconf.order : undefined,
website: pconf.website,
}; };
res.json({ res.json({