feat(turnstile): integrate Cloudflare Turnstile for enhanced security in login and registration processes

This commit is contained in:
beilunyang
2025-10-22 23:31:48 +08:00
parent 1ffe920d47
commit e431c1fe5b
22 changed files with 480 additions and 56 deletions
+5 -2
View File
@@ -36,8 +36,11 @@
"loginFailedDesc": "Incorrect username or password",
"registerFailed": "Registration Failed",
"registerFailedDesc": "Please try again later",
"autoLoginFailed": "Auto-login failed, please login manually"
"autoLoginFailed": "Auto-login failed, please login manually",
"turnstileRequired": "Please complete the verification",
"turnstileRequiredDesc": "Solve the Turnstile challenge below before continuing",
"registerSuccess": "Registration Successful",
"registerSuccessDesc": "Switch to the login tab and complete verification to sign in"
}
}
}
+3 -2
View File
@@ -3,7 +3,9 @@
"title": "Insufficient Permission",
"description": "You don't have permission to access this page. Please contact the website administrator.",
"adminContact": "Admin Contact",
"backToHome": "Back to Home"
"backToHome": "Back to Home",
"needPermission": "需要公爵或更高权限才能管理 API Key",
"contactAdmin": "请联系网站管理员升级您的角色"
},
"layout": {
"myEmails": "My Emails",
@@ -165,4 +167,3 @@
}
}
}
+9 -1
View File
@@ -107,6 +107,15 @@
"adminContact": "Admin Contact",
"adminContactPlaceholder": "Email or other contact method",
"maxEmails": "Max Emails per User",
"turnstile": {
"enable": "Enable Cloudflare Turnstile",
"enableDescription": "When enabled, username/password login and registration require Turnstile verification",
"siteKey": "Site Key",
"siteKeyPlaceholder": "Enter Turnstile Site Key",
"secretKey": "Secret Key",
"secretKeyPlaceholder": "Enter Turnstile Secret Key",
"secretKeyDescription": "Set up a Turnstile application in Cloudflare and provide the required keys before enabling"
},
"save": "Save Configuration",
"saving": "Saving...",
"saveSuccess": "Configuration saved successfully",
@@ -128,4 +137,3 @@
"updateFailed": "Failed to update user role"
}
}