fix(password): 优化修改密码相关bug

This commit is contained in:
sophie committed 2026-06-09 10:28:13 +08:00
1 parent 3837a8669e
commit 1de4b78181
5 files changed
+344 -38

No files matched your search

+104
View File
@@ -36,6 +36,31 @@ const messages = {
passwordResetEmailSent: '如果账号存在,重置链接已发送到您的邮箱。',
passwordResetRequestFailed: '请求密码重置失败',
casdoorLogin: 'Login with Casdoor',
casdoorErrors: {
invalidCredentials: 'Incorrect username or password',
codeExpired: 'Login session expired, please sign in again',
stateExpired: 'Login session expired, please try again',
accessDenied: 'Login was cancelled or denied',
configError: 'Authentication service is unavailable. Please contact the administrator.',
authFailed: 'Authentication failed, please try again',
passwordPolicy: 'New password does not meet security requirements',
setPasswordFailed: 'Failed to change password. Please try again or contact the administrator.',
incorrectCurrentPassword: 'Current password is incorrect',
userNotInIdp: 'Your account has not been registered in the authentication system. Please contact the administrator to sync your account before changing your password.',
},
casdoorDialogTitles: {
userNotFound: 'No local account matched',
userNotInIdp: 'Account not registered in authentication system',
accountDisabled: 'Account is disabled',
sessionExpired: 'Login session expired',
configError: 'Authentication service error',
accessDenied: 'Login was not completed',
loginFailed: 'Login failed',
},
casdoorDialogDetails: {
contactAdmin: 'If the problem persists, please contact the administrator.',
retryLogin: 'Please close this dialog and sign in again.',
},
wecomLogin: 'Login with WeCom',
wecomConnecting: 'Connecting to WeCom...',
wecomStartFailed: 'Failed to start WeCom login',
@@ -1502,6 +1527,7 @@ const messages = {
newPassword: 'New Password',
confirmPassword: 'Confirm Password',
changePassword: 'Change Password',
changingPassword: 'Changing...',
changePasswordContactAdmin: 'Please contact the administrator to change your password.'
},
feedback: {
@@ -1598,6 +1624,31 @@ const messages = {
passwordResetEmailSent: '如果账号存在,重置链接已发送到您的邮箱。',
passwordResetRequestFailed: '请求密码重置失败',
casdoorLogin: 'Casdoor 登录',
casdoorErrors: {
invalidCredentials: '用户名或密码错误',
codeExpired: '登录会话已过期,请重新登录',
stateExpired: '登录会话已过期,请重试',
accessDenied: '登录已取消或被拒绝',
configError: '认证服务暂不可用,请联系管理员',
authFailed: '登录失败,请稍后重试',
passwordPolicy: '新密码不符合安全要求',
setPasswordFailed: '修改密码失败,请稍后重试或联系管理员',
incorrectCurrentPassword: '当前密码不正确',
userNotInIdp: '您的账号尚未在统一认证系统中开通,请联系管理员同步账号后再修改密码。',
},
casdoorDialogTitles: {
userNotFound: '未匹配到本地账号',
userNotInIdp: '认证系统中无此账号',
accountDisabled: '账号已禁用',
sessionExpired: '登录会话已过期',
configError: '认证服务异常',
accessDenied: '登录未完成',
loginFailed: '登录失败',
},
casdoorDialogDetails: {
contactAdmin: '若问题持续出现,请联系管理员处理。',
retryLogin: '请关闭此窗口后重新登录。',
},
wecomLogin: '企业微信登录',
wecomConnecting: '正在连接企业微信...',
wecomStartFailed: '启动企业微信登录失败',
@@ -3044,6 +3095,7 @@ const messages = {
newPassword: '新密码',
confirmPassword: '确认密码',
changePassword: '修改密码',
changingPassword: '修改中...',
changePasswordContactAdmin: '请联系管理员修改'
},
feedback: {
@@ -3129,6 +3181,31 @@ const messages = {
forgotPasswordDesc: '輸入您的郵箱以重設密碼',
findPassword: '找回密碼',
casdoorLogin: 'Casdoor 登入',
casdoorErrors: {
invalidCredentials: '用戶名或密碼錯誤',
codeExpired: '登入會話已過期,請重新登入',
stateExpired: '登入會話已過期,請重試',
accessDenied: '登入已取消或被拒絕',
configError: '認證服務暫不可用,請聯繫管理員',
authFailed: '登入失敗,請稍後重試',
passwordPolicy: '新密碼不符合安全要求',
setPasswordFailed: '修改密碼失敗,請稍後重試或聯繫管理員',
incorrectCurrentPassword: '當前密碼不正確',
userNotInIdp: '您的賬號尚未在統一認證系統中開通,請聯繫管理員同步賬號後再修改密碼。',
},
casdoorDialogTitles: {
userNotFound: '未匹配到本地賬號',
userNotInIdp: '認證系統中無此賬號',
accountDisabled: '賬號已禁用',
sessionExpired: '登入會話已過期',
configError: '認證服務異常',
accessDenied: '登入未完成',
loginFailed: '登入失敗',
},
casdoorDialogDetails: {
contactAdmin: '若問題持續出現,請聯繫管理員處理。',
retryLogin: '請關閉此窗口後重新登入。',
},
wecomLogin: '企業微信登錄',
wecomConnecting: '正在連接企業微信...',
wecomStartFailed: '啟動企業微信登錄失敗',
@@ -4380,6 +4457,7 @@ const messages = {
newPassword: '新密碼',
confirmPassword: '確認密碼',
changePassword: '修改密碼',
changingPassword: '修改中...',
changePasswordContactAdmin: '請聯繫管理員修改'
},
feedback: {
@@ -4465,6 +4543,31 @@ const messages = {
forgotPasswordDesc: 'กรอกอีเมลเพื่อรีเซ็ตรหัสผ่าน',
findPassword: 'ค้นหารหัสผ่าน',
casdoorLogin: 'เข้าสู่ระบบด้วย Casdoor',
casdoorErrors: {
invalidCredentials: 'ชื่อผู้ใช้หรือรหัสผ่านไม่ถูกต้อง',
codeExpired: 'เซสชันการเข้าสู่ระบบหมดอายุแล้ว กรุณาเข้าสู่ระบบใหม่',
stateExpired: 'เซสชันการเข้าสู่ระบบหมดอายุแล้ว กรุณาลองใหม่',
accessDenied: 'การเข้าสู่ระบบถูกยกเลิกหรือถูกปฏิเสธ',
configError: 'บริการยืนยันตัวตนไม่พร้อมใช้งาน กรุณาติดต่อผู้ดูแลระบบ',
authFailed: 'เข้าสู่ระบบไม่สำเร็จ กรุณาลองใหม่',
passwordPolicy: 'รหัสผ่านใหม่ไม่ตรงตามข้อกำหนดด้านความปลอดภัย',
setPasswordFailed: 'เปลี่ยนรหัสผ่านไม่สำเร็จ กรุณาลองใหม่หรือติดต่อผู้ดูแลระบบ',
incorrectCurrentPassword: 'รหัสผ่านปัจจุบันไม่ถูกต้อง',
userNotInIdp: 'บัญชีของคุณยังไม่ได้ลงทะเบียนในระบบยืนยันตัวตน กรุณาติดต่อผู้ดูแลระบบเพื่อซิงค์บัญชีก่อนเปลี่ยนรหัสผ่าน',
},
casdoorDialogTitles: {
userNotFound: 'ไม่พบบัญชีในระบบที่ตรงกัน',
userNotInIdp: 'ไม่พบบัญชีในระบบยืนยันตัวตน',
accountDisabled: 'บัญชีถูกปิดใช้งาน',
sessionExpired: 'เซสชันการเข้าสู่ระบบหมดอายุ',
configError: 'บริการยืนยันตัวตนผิดปกติ',
accessDenied: 'การเข้าสู่ระบบยังไม่สำเร็จ',
loginFailed: 'เข้าสู่ระบบไม่สำเร็จ',
},
casdoorDialogDetails: {
contactAdmin: 'หากปัญหายังคงอยู่ กรุณาติดต่อผู้ดูแลระบบ',
retryLogin: 'กรุณาปิดหน้าต่างนี้แล้วเข้าสู่ระบบใหม่',
},
wecomLogin: 'เข้าสู่ระบบด้วย WeCom',
wecomConnecting: 'กำลังเชื่อมต่อ WeCom...',
wecomStartFailed: 'เริ่มต้นการเข้าสู่ระบบด้วย WeCom ไม่สำเร็จ',
@@ -5659,6 +5762,7 @@ const messages = {
newPassword: 'รหัสผ่านใหม่',
confirmPassword: 'ยืนยันรหัสผ่าน',
changePassword: 'เปลี่ยนรหัสผ่าน',
changingPassword: 'กำลังเปลี่ยน...',
changePasswordContactAdmin: 'กรุณาติดต่อผู้ดูแลระบบเพื่อเปลี่ยนรหัสผ่าน'
},
feedback: {