mirror of
https://github.com/ZeroCatDev/ClassworksKV.git
synced 2025-10-22 02:03:11 +00:00
添加OAuth提供者和用户资料中的网站字段
This commit is contained in:
parent
5435814cb6
commit
f8f63d1ddd
@ -58,6 +58,7 @@ router.get("/oauth/providers", (req, res) => {
|
||||
description: config.description,
|
||||
order: typeof config.order === 'number' ? config.order : 9999,
|
||||
authUrl: `/accounts/oauth/${key}`, // 前端用于发起认证的URL
|
||||
website: config.website,
|
||||
});
|
||||
}
|
||||
}
|
||||
@ -399,6 +400,7 @@ router.get("/profile", jwtAuth, async (req, res, next) => {
|
||||
textColor: pconf.textColor || "#ffffff",
|
||||
description: pconf.description,
|
||||
order: typeof pconf.order === 'number' ? pconf.order : undefined,
|
||||
website: pconf.website,
|
||||
};
|
||||
|
||||
res.json({
|
||||
|
Loading…
x
Reference in New Issue
Block a user