feat(passport): 新增忘记密码功能及相关接口

- 新增忘记密码页面,支持邮箱找回和手机找回两种方式,包含验证码倒计时
- 添加密码强度和一致性校验,确保新密码安全性
- 开启对应路由 /forget,恢复已注释的忘记密码入口
- 新增发送短信验证码和邮箱验证码接口,适配未登录场景
- 新增重置密码接口,支持手机短信码及邮箱验证码方式
- 请求拦截器支持 X-Tenant-Skip 头,跳过租户信息注入,避免跨租户串扰
- 国际化新增忘记密码相关英文和中文文案
- 页面样式与登录页视觉风格一致,跨屏幕响应式布局优化
This commit is contained in:
2026-07-24 22:07:53 +08:00
parent 0bfd5e667b
commit d6b56d99ce
9 changed files with 661 additions and 8 deletions
+29 -1
View File
@@ -10,5 +10,33 @@ export default {
loading: 'loading',
oldPassword: 'Old',
newPassword: 'New',
confirm: 'Confirm'
confirm: 'Confirm',
forgetPage: {
title: 'Forgot Password',
subTitle: 'Enter your account info to reset the password',
tabEmail: 'By Email',
tabPhone: 'By Phone',
email: 'Email',
phone: 'Phone',
emailCode: 'Email Code',
code: 'SMS Code',
getCode: 'Get Code',
sentEmail: 'Verification code sent, please check your email',
sentPhone: 'Verification code sent',
newPassword: 'New Password',
confirmPassword: 'Confirm Password',
reset: 'Reset Password',
backLogin: 'Back to Login',
success: 'Password reset successfully, please login with the new password',
emailPlaceholder: 'Please enter your registered email',
phonePlaceholder: 'Please enter your registered phone',
codePlaceholder: 'Please enter the code',
passwordPlaceholder: 'At least 8 chars, must contain letters and numbers',
confirmPlaceholder: 'Please enter the password again',
newPasswordRule: 'Password must be at least 8 chars with letters and numbers',
confirmRule: 'The two passwords do not match',
emailRule: 'Please enter a valid email address',
phoneRule: 'Please enter a valid phone number',
codeRule: 'Please enter the code'
}
};