feat(passport): 优化忘记密码页发送验证码体验

- 引入图形验证码弹窗,风格与注册页面保持一致
- 使用 localStorage 记录每个账号发送验证码次数,前三次免图形验证码
- 第四次及以后发送验证码需输入正确图形验证码才能发送
- 失败时自动刷新验证码,关闭弹窗时重置加载状态
- 新增相关国际化文案支持中英文
- 调整登录页邮箱登录相关占位符文案提升用户体验
This commit is contained in:
2026-07-24 22:14:29 +08:00
parent d6b56d99ce
commit f9bf3c6df3
5 changed files with 146 additions and 18 deletions
+4 -1
View File
@@ -37,6 +37,9 @@ export default {
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'
codeRule: 'Please enter the code',
captchaTitle: 'Send Code',
captchaPlaceholder: 'Please enter the captcha',
sendNow: 'Send Now'
}
};