feat: 登录改为 Casdoor 统一身份认证(SSO),重建用户体系

- 移除内置密码注册/登录/改密/删号/头像,统一走 Casdoor OIDC 授权码
- 服务端 casdoor-nodejs-sdk:code 换 token + 证书公钥验签 + get-account 补齐资料
- 用户表重建为 provider+provider_id(Casdoor sub 为准),邮箱不再唯一
- 管理员由 Casdoor token 的 isAdmin/IsAdmin 字段或 admin 角色判定,删除角色切换接口
- 前端登录弹窗改为申统认证跳转,注册去 Casdoor;后台用户列表只读角色
- 会话沿用 an_session httpOnly Cookie,requireUser/requireAdmin 守卫保留
- 配置注入 deploy.sh/.env.example;新增 casdoor 单测,删除 password 单测
This commit is contained in:
2026-08-09 00:18:47 +08:00
parent bdafac2857
commit 337eb4f05a
51 changed files with 1395 additions and 1504 deletions
+8 -48
View File
@@ -100,56 +100,10 @@
}
}
},
"achievements": {
"items": {
"projects": {
"title": "Successful Projects",
"description": "We've successfully delivered over 150 high-quality projects across various industries, earning client trust."
},
"clients": {
"title": "Global Clients",
"description": "Serving 85+ clients worldwide, from startups to large enterprises, building long-term partnerships."
},
"experience": {
"title": "Industry Experience",
"description": "12 years of deep expertise in the digital realm, staying ahead of industry trends with cutting-edge solutions."
},
"satisfaction": {
"title": "Client Satisfaction",
"description": "98% client satisfaction rate, driven by our commitment to quality and deep understanding of client needs."
}
}
},
"achievements": {},
"testimonials": {
"title": "Client Testimonials",
"subtitle": "Hear what our clients have to say about us",
"items": {
"client1": {
"name": "Alex Chen",
"role": "CEO, Tech Company",
"content": "Working with ArcticNewOne was an amazing experience. Their professionalism and creative thinking exceeded our expectations."
},
"client2": {
"name": "Sarah Li",
"role": "Founder, E-commerce",
"content": "The team is incredibly professional, from design to development. The project was delivered on time with excellent quality!"
},
"client3": {
"name": "Michael Wang",
"role": "Brand Director",
"content": "They truly understood our brand needs and created stunning designs. Collaboration was smooth and communication efficient."
},
"client4": {
"name": "Emily Zhao",
"role": "Marketing Manager",
"content": "ArcticNewOne helped us complete our digital transformation. Website traffic increased by 300% and conversion rates soared."
},
"client5": {
"name": "David Liu",
"role": "Product Lead",
"content": "From strategic planning to execution, every step was meticulously handled. One of the most professional teams I've worked with."
}
}
"subtitle": "Hear what our clients have to say about us"
},
"process": {
"title": "Our Process",
@@ -358,6 +312,10 @@
"login": "Login",
"logout": "Logout",
"loginDescription": "Welcome back! Please login to your account.",
"casdoorDescription": "Sign in with the unified identity provider",
"casdoorHint": "Click the button below to continue at the unified authentication center.",
"loginWithCasdoor": "Sign in with SSO",
"redirecting": "Redirecting to sign in",
"account": "Account",
"accountPlaceholder": "Username / Email / Phone",
"password": "Password",
@@ -412,6 +370,8 @@
"saving": "Saving...",
"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.",
"emptyFavorites": "No favorites yet. Go to the Work page to explore.",
"emptyComments": "No comments posted yet",
"admin": {