mirror of
https://github.com/snowykami/neo-blog.git
synced 2025-09-26 19:16:24 +00:00
feat: add captcha support for user login and enhance user profile page
- Refactored userLogin function to include captcha handling. - Introduced getCaptchaConfig API to fetch captcha configuration. - Added Captcha component to handle different captcha providers (hCaptcha, reCaptcha, Turnstile). - Updated LoginForm component to integrate captcha verification. - Created UserProfile component to display user information with avatar. - Implemented getUserByUsername API to fetch user details by username. - Removed deprecated LoginRequest interface from user model. - Enhanced navbar and layout with animation effects. - Removed unused user page component and added dynamic user profile routing. - Updated localization files to include captcha-related messages. - Improved Gravatar component for better avatar handling.
This commit is contained in:
@ -2,6 +2,10 @@
|
||||
"HomePage": {
|
||||
"title": "Hello world!"
|
||||
},
|
||||
"Captcha": {
|
||||
"doing": "正在检测你是不是机器人...",
|
||||
"success": "恭喜,你是人类!"
|
||||
},
|
||||
"Comment": {
|
||||
"collapse_replies": "收起",
|
||||
"comment": "评论",
|
||||
@ -41,6 +45,7 @@
|
||||
"secondsAgo": "秒前"
|
||||
},
|
||||
"Login": {
|
||||
"captcha_error": "验证错误,请重试。",
|
||||
"welcome": "欢迎回来",
|
||||
"with_oidc": "使用第三方身份提供者",
|
||||
"or_continue_with_local_account": "或使用用户名和密码",
|
||||
|
Reference in New Issue
Block a user