feat: 用户资料改回自同步 Casimir(昵称/邮箱)+ 头像改走 Casimir upload-resource
- 站内改昵称/邮箱/头像后,用自己的 access_token 写回 Casimir(update-user,字段每批≤2,401 自动 refresh_token 续期) - 头像不再本地存储:上传直调 Casimir upload-resource (tag=avatar),成功后自动写回 user.Avatar,仅落库返回 URL - me.patch 头像仅存档本地,避免 update-user 重复同步 - 头像上传仅走 Casimir,未配置 Storage provider 时报错提示 - exchangeCodeForIdentity 补 owner/displayName/token,昵称优先 displayName - 新增类型检查依赖 typescript/vue-tsc 与 typecheck 脚本
This commit is contained in:
@@ -361,6 +361,8 @@
|
||||
"comments": "My Comments",
|
||||
"adminTitle": "Admin",
|
||||
"username": "Username",
|
||||
"nickname": "Nickname",
|
||||
"avatarHint": "Your avatar is synced to the unified identity provider. Supported: png/jpg/gif/webp/svg/avif, up to 8MB",
|
||||
"email": "Email",
|
||||
"phone": "Phone",
|
||||
"joinedAt": "Joined",
|
||||
@@ -372,7 +374,7 @@
|
||||
"saved": "Saved",
|
||||
"saveFailed": "Failed to save. Please try again.",
|
||||
"ssoAccount": "Unified SSO Account",
|
||||
"ssoAccountHint": "Email, avatar and password are managed by the unified identity provider (Casdoor). Visit the provider to update them.",
|
||||
"ssoAccountHint": "Changes to your nickname, avatar and email here are synced back to the unified identity provider (Casdoor) and stay consistent across all sites using it.",
|
||||
"emptyFavorites": "No favorites yet. Go to the Work page to explore.",
|
||||
"emptyComments": "No comments posted yet",
|
||||
"admin": {
|
||||
|
||||
@@ -361,6 +361,8 @@
|
||||
"comments": "我的评论",
|
||||
"adminTitle": "管理面板",
|
||||
"username": "用户名",
|
||||
"nickname": "昵称",
|
||||
"avatarHint": "头像会同步到统一认证中心,支持 png/jpg/gif/webp/svg/avif,大小不超过 8MB",
|
||||
"email": "邮箱",
|
||||
"phone": "手机号",
|
||||
"joinedAt": "注册时间",
|
||||
@@ -372,7 +374,7 @@
|
||||
"saved": "已保存",
|
||||
"saveFailed": "保存失败,请重试",
|
||||
"ssoAccount": "统一身份认证账号",
|
||||
"ssoAccountHint": "邮箱、头像与密码等账号信息由统一身份认证中心(Casdoor)管理,如需修改请前往认证中心。",
|
||||
"ssoAccountHint": "昵称、头像与邮箱在此修改后会同步回统一身份认证中心(Casimir),在其他接入统一认证的站点也会保持一致。",
|
||||
"emptyFavorites": "还没有收藏任何作品,去「作品」页看看吧",
|
||||
"emptyComments": "还没有发表过评论",
|
||||
"admin": {
|
||||
|
||||
Reference in New Issue
Block a user