feat(auth): 支持企业微信重置密码

This commit is contained in:
sophie committed 2026-06-15 17:13:48 +08:00
1 parent 9bc4d1dd18
commit 6baeffba64
55 files changed
+2852 -546

No files matched your search

+45 -2
View File
@@ -237,8 +237,50 @@
}
},
"wecom": {
"title": "WeCom Binding Management",
"subtitle": "Manually bind/unbind WeCom accounts and review login audit records",
"title": "WeCom",
"subtitle": "Configure WeCom integration, sync userids, manage bindings and login audits",
"nav": {
"settings": "Settings",
"bindings": "Bindings",
"audits": "Login Audits"
},
"overview": {
"bound": "Bound userids",
"unbound": "Unbound",
"boundRate": "Bound rate",
"hint": "Password reset",
"hintDesc": "Users without wecom_userid cannot receive WeCom reset links"
},
"sync": {
"title": "Directory Sync",
"desc": "Pull WeCom members and backfill users.wecom_userid by employee ID for reset and notifications.",
"permissionNote": "Requires contact read and message send permissions on the WeCom app.",
"employeeIdSource": "Employee ID source",
"departmentId": "Root department ID (optional)",
"departmentIdPlaceholder": "Leave empty for all departments",
"preview": "Preview sync",
"apply": "Apply changes",
"previewDone": "Preview completed. Review results before applying.",
"previewFailed": "Preview sync failed",
"previewFirst": "Please preview sync results first",
"conflictsBlockApply": "Conflicts detected. Resolve them before applying.",
"nothingToUpdate": "Nothing to update",
"applyConfirm": "Write {count} userid bindings to the database?",
"applyDone": "Successfully updated {count} bindings",
"applyFailed": "Failed to apply sync results",
"invalidDepartmentId": "Department ID must be a positive integer",
"previewTruncated": "Showing first 20 of {total} pending updates",
"conflictsTitle": "Conflicts",
"occupiedBy": "userid already used by {user}",
"stats": {
"wecomUsers": "WeCom members",
"localMatched": "Local matched",
"wouldUpdate": "Would update",
"conflicts": "Conflicts"
}
},
"bindingsHint": "Users without wecom_userid cannot use WeCom password reset. Run directory sync or bind manually.",
"searchBindings": "Search username, name, employee ID or wecom_userid",
"systemSettings": "WeCom System Settings",
"integrationCopyTitle": "WeCom Console Copy Helper",
"integrationCopyDesc": "Copy these values directly into WeCom console fields.",
@@ -323,6 +365,7 @@
},
"headers": {
"user": "User",
"employeeId": "Employee ID",
"roleStatus": "Role / Status",
"wecomUserId": "WeCom UserId",
"unionId": "UnionId",
+23 -3
View File
@@ -30,11 +30,14 @@
"dbConnectionFailed": "Database connection failed. Please check if the database service is running.",
"internalError": "Internal server error. Please try again later.",
"rememberMe": "Remember me for 30 days",
"forgotPasswordDesc": "Enter your email to reset your password",
"forgotPasswordDesc": "Enter your employee ID and username; a reset link will be sent to your WeCom",
"findPassword": "Find Password",
"employeeIdRequired": "Please enter employee ID",
"passwordResetWecomSent": "If the account exists and WeCom is bound, a reset link has been sent to your WeCom.",
"passwordResetEmailSent": "If the account exists, a reset link has been sent to your email.",
"passwordResetRequestFailed": "Failed to request password reset",
"passwordResetRateLimited": "Too many attempts. Please try again in {minutes} minute(s).",
"announcements": "Announcements",
"passwordResetEmailSent": "如果账号存在,重置链接已发送到您的邮箱。",
"passwordResetRequestFailed": "请求密码重置失败",
"casdoorLogin": "Login with Casdoor",
"casdoorErrors": {
"invalidCredentials": "Incorrect username or password",
@@ -161,5 +164,22 @@
"employeeId": "Employee ID",
"phone": "Phone Number"
}
},
"resetPassword": {
"title": "Reset Password",
"desc": "Enter your new password below",
"newPassword": "New Password",
"confirmPassword": "Confirm Password",
"newPasswordPlaceholder": "Enter new password",
"confirmPasswordPlaceholder": "Confirm new password",
"submit": "Reset Password",
"submitting": "Resetting...",
"backToLogin": "Back to Login",
"fillAllFields": "Please fill in all fields",
"passwordMismatch": "Passwords do not match",
"successRedirect": "Password reset successfully. Redirecting to login...",
"failed": "Failed to reset password",
"invalidLink": "Invalid reset link. Please request password reset again.",
"tokenInvalid": "This link has expired or was already used. Please request a new reset link from the login page."
}
}
+7
View File
@@ -17,5 +17,12 @@
"info": "Notice",
"warning": "Warning",
"error": "Error"
},
"pagination": {
"summary": "Total {total} rows, page {page} / {pages}",
"perPage": "Per page",
"itemsUnit": "rows",
"prevPage": "Previous",
"nextPage": "Next"
}
}
+6 -1
View File
@@ -18,6 +18,11 @@
"USER_PHONE_EXISTS": "Phone number already exists.",
"USER_UNIQUENESS_CONFLICT": "Data uniqueness conflict.",
"SYSTEM_INTERNAL_ERROR": "Internal server error. Please try again later.",
"SYSTEM_HTTP_ERROR": "Request failed."
"SYSTEM_HTTP_ERROR": "Request failed.",
"WECOM_RESET_NOT_CONFIGURED": "WeCom password reset is not configured. Enable WeCom under Admin → WeCom → System Settings and fill Corp ID, Agent ID, and Secret.",
"WECOM_NOTIFY_DISABLED": "WeCom notifications are disabled. Enable them under Admin → WeCom → Notify Settings.",
"WECOM_RESET_URL_NOT_CONFIGURED": "Public base URL is not configured. Set WECOM_PUBLIC_BASE_URL in system settings.",
"AUTH_PASSWORD_RESET_RATE_LIMITED": "Too many requests. Please try again later.",
"AUTH_RESET_TOKEN_INVALID": "Reset link is invalid or expired. Please request password reset again."
}
}