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:
+8
-48
@@ -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": {
|
||||
|
||||
+8
-48
@@ -100,56 +100,10 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"achievements": {
|
||||
"items": {
|
||||
"projects": {
|
||||
"title": "成功项目",
|
||||
"description": "我们已经成功交付超过 150 个高质量项目,涵盖各行各业,赢得客户信赖。"
|
||||
},
|
||||
"clients": {
|
||||
"title": "合作客户",
|
||||
"description": "服务全球 85+ 客户,从初创公司到大型企业,建立长期合作关系。"
|
||||
},
|
||||
"experience": {
|
||||
"title": "行业经验",
|
||||
"description": "12 年深耕数字领域,积累丰富经验,紧跟行业趋势,提供前沿解决方案。"
|
||||
},
|
||||
"satisfaction": {
|
||||
"title": "客户满意度",
|
||||
"description": "98% 的客户满意度,源于我们对品质的执着追求和对客户需求的深刻理解。"
|
||||
}
|
||||
}
|
||||
},
|
||||
"achievements": {},
|
||||
"testimonials": {
|
||||
"title": "客户评价",
|
||||
"subtitle": "听听客户对我们的真实评价",
|
||||
"items": {
|
||||
"client1": {
|
||||
"name": "张伟",
|
||||
"role": "科技公司 CEO",
|
||||
"content": "与北极新一合作是一次非常愉快的体验。他们的专业能力和创意思维让我们的项目超出了预期。"
|
||||
},
|
||||
"client2": {
|
||||
"name": "李娜",
|
||||
"role": "电商平台创始人",
|
||||
"content": "团队非常专业,从设计到开发都展现出极高的水准。项目按时交付,质量优秀,强烈推荐!"
|
||||
},
|
||||
"client3": {
|
||||
"name": "王强",
|
||||
"role": "品牌总监",
|
||||
"content": "他们真正理解我们的品牌需求,创造出令人惊艳的设计。合作过程顺畅,沟通高效。"
|
||||
},
|
||||
"client4": {
|
||||
"name": "赵敏",
|
||||
"role": "市场部经理",
|
||||
"content": "北极新一帮助我们完成了数字化转型,网站流量提升了 300%,转化率也大幅提高。"
|
||||
},
|
||||
"client5": {
|
||||
"name": "刘洋",
|
||||
"role": "产品负责人",
|
||||
"content": "从战略规划到执行落地,每个环节都做得非常细致。这是我合作过最专业的团队之一。"
|
||||
}
|
||||
}
|
||||
"subtitle": "听听客户对我们的真实评价"
|
||||
},
|
||||
"process": {
|
||||
"title": "工作流程",
|
||||
@@ -358,6 +312,10 @@
|
||||
"login": "登录",
|
||||
"logout": "退出登录",
|
||||
"loginDescription": "欢迎回来!请登录您的账户。",
|
||||
"casdoorDescription": "使用统一身份认证,登录北极新站内账号",
|
||||
"casdoorHint": "选择下方按钮,将跳转到统一身份认证中心完成登录。",
|
||||
"loginWithCasdoor": "通过统一身份认证登录",
|
||||
"redirecting": "正在跳转登录…",
|
||||
"account": "账号",
|
||||
"accountPlaceholder": "用户名 / 邮箱 / 手机号",
|
||||
"password": "密码",
|
||||
@@ -412,6 +370,8 @@
|
||||
"saving": "保存中...",
|
||||
"saved": "已保存",
|
||||
"saveFailed": "保存失败,请重试",
|
||||
"ssoAccount": "统一身份认证账号",
|
||||
"ssoAccountHint": "邮箱、头像与密码等账号信息由统一身份认证中心(Casdoor)管理,如需修改请前往认证中心。",
|
||||
"emptyFavorites": "还没有收藏任何作品,去「作品」页看看吧",
|
||||
"emptyComments": "还没有发表过评论",
|
||||
"admin": {
|
||||
|
||||
Reference in New Issue
Block a user