mirror of
https://github.com/shuaiplus/nodewarden.git
synced 2026-06-20 21:00:41 +00:00
feat: add master password hint functionality
- Updated user model to include masterPasswordHint. - Modified sync handler to return masterPasswordHint. - Implemented password hint retrieval in public API. - Enhanced user profile management to allow updating of password hint. - Added UI components for displaying and editing password hint. - Updated localization files for new password hint strings. - Improved rate limiting for sensitive public requests. - Adjusted database schema to accommodate master password hint.
This commit is contained in:
@@ -458,6 +458,19 @@ const messages: Record<Locale, Record<string, string>> = {
|
||||
txt_password: "Password",
|
||||
txt_password_is_already_verified: "Password is already verified.",
|
||||
txt_passwords_do_not_match: "Passwords do not match",
|
||||
txt_password_hint: "Password Hint",
|
||||
txt_password_hint_optional: "Password Hint (optional)",
|
||||
txt_password_hint_placeholder: "A clue only you would understand",
|
||||
txt_password_hint_register_placeholder: "This hint can be shown directly on the web login page.",
|
||||
txt_password_hint_register_help: "This hint can be shown directly on the web login page. Do not include your master password, recovery code, or anything that can reveal it outright.",
|
||||
txt_password_hint_login_help: "Forgot the master password? Reveal the hint you saved during registration.",
|
||||
txt_password_hint_login_note: "Only a hint is shown here. It should help you remember the password, not expose it.",
|
||||
txt_show_password_hint: "Show Password Hint",
|
||||
txt_hide_password_hint: "Hide Password Hint",
|
||||
txt_loading_password_hint: "Loading hint...",
|
||||
txt_password_hint_not_set: "No password hint is available for this email.",
|
||||
txt_password_hint_load_failed: "Failed to load password hint",
|
||||
txt_password_hint_too_long: "Password hint must be 120 characters or fewer",
|
||||
txt_phone: "Phone",
|
||||
txt_please_input_email_and_password: "Please input email and password",
|
||||
txt_please_input_master_password: "Please input master password",
|
||||
@@ -1095,6 +1108,19 @@ const zhCNOverrides: Record<string, string> = {
|
||||
txt_opera_extension: 'Opera 扩展',
|
||||
txt_password_is_already_verified: '密码已验证',
|
||||
txt_passwords_do_not_match: '两次输入的密码不一致',
|
||||
txt_password_hint: '密码提示',
|
||||
txt_password_hint_optional: '密码提示(可选)',
|
||||
txt_password_hint_placeholder: '写一句只有你自己看得懂的线索',
|
||||
txt_password_hint_register_placeholder: '这个提示可以在网页登录页直接显示。',
|
||||
txt_password_hint_register_help: '这个提示可以在网页登录页直接显示。不要填写主密码、恢复代码,或任何能直接暴露密码的信息。',
|
||||
txt_password_hint_login_help: '忘记主密码时,可以查看注册时保存的提示。',
|
||||
txt_password_hint_login_note: '这里只会显示提示语,不会显示你的主密码本身。',
|
||||
txt_show_password_hint: '查看密码提示',
|
||||
txt_hide_password_hint: '隐藏密码提示',
|
||||
txt_loading_password_hint: '正在加载提示...',
|
||||
txt_password_hint_not_set: '这个邮箱没有可显示的密码提示。',
|
||||
txt_password_hint_load_failed: '加载密码提示失败',
|
||||
txt_password_hint_too_long: '密码提示最多只能输入 120 个字符',
|
||||
txt_phone: '电话',
|
||||
txt_please_input_email_and_password: '请输入邮箱和密码',
|
||||
txt_please_input_master_password: '请输入主密码',
|
||||
|
||||
Reference in New Issue
Block a user