tokenFactory/common
xiezhouwei b63f75ade4 feat: add captcha verification for login form
- Add /api/captcha endpoint with captcha generation/verification service
- Add captcha_enabled option in system settings (model/option.go)
- Add captcha display and refresh logic in LoginForm
- Fix captcha not showing on Chrome due to Semi UI Form.Input suffix
  incompatibility; refactored to standalone flex layout
- Fix stale localStorage cache preventing captcha rendering on first visit
  by proactively fetching /api/status on LoginForm mount
- Add captcha_enabled toggle in admin SystemSetting panel
- Add i18n keys for captcha-related text (zh-CN, en)
2026-06-05 13:57:13 +08:00
..
limiter Initial commit 2026-06-03 10:01:10 +08:00
api_type.go Initial commit 2026-06-03 10:01:10 +08:00
audio.go Initial commit 2026-06-03 10:01:10 +08:00
body_storage.go Initial commit 2026-06-03 10:01:10 +08:00
constants.go feat: add captcha verification for login form 2026-06-05 13:57:13 +08:00
copy.go Initial commit 2026-06-03 10:01:10 +08:00
crypto.go Initial commit 2026-06-03 10:01:10 +08:00
custom-event.go Initial commit 2026-06-03 10:01:10 +08:00
database.go Initial commit 2026-06-03 10:01:10 +08:00
disk_cache.go Initial commit 2026-06-03 10:01:10 +08:00
disk_cache_config.go Initial commit 2026-06-03 10:01:10 +08:00
distributor_commission_mode.go Initial commit 2026-06-03 10:01:10 +08:00
email-outlook-auth.go Initial commit 2026-06-03 10:01:10 +08:00
email.go Initial commit 2026-06-03 10:01:10 +08:00
embed-file-system.go Initial commit 2026-06-03 10:01:10 +08:00
endpoint_defaults.go Initial commit 2026-06-03 10:01:10 +08:00
endpoint_type.go Initial commit 2026-06-03 10:01:10 +08:00
env.go Initial commit 2026-06-03 10:01:10 +08:00
flexible_float_map.go Initial commit 2026-06-03 10:01:10 +08:00
gin.go Initial commit 2026-06-03 10:01:10 +08:00
go-channel.go Initial commit 2026-06-03 10:01:10 +08:00
gopool.go Initial commit 2026-06-03 10:01:10 +08:00
hash.go Initial commit 2026-06-03 10:01:10 +08:00
init.go Initial commit 2026-06-03 10:01:10 +08:00
ip.go Initial commit 2026-06-03 10:01:10 +08:00
json.go Initial commit 2026-06-03 10:01:10 +08:00
model.go Initial commit 2026-06-03 10:01:10 +08:00
page_info.go Initial commit 2026-06-03 10:01:10 +08:00
performance_config.go Initial commit 2026-06-03 10:01:10 +08:00
pprof.go Initial commit 2026-06-03 10:01:10 +08:00
pyro.go Initial commit 2026-06-03 10:01:10 +08:00
quota.go Initial commit 2026-06-03 10:01:10 +08:00
rate-limit.go Initial commit 2026-06-03 10:01:10 +08:00
redis.go Initial commit 2026-06-03 10:01:10 +08:00
sms_verification.go Initial commit 2026-06-03 10:01:10 +08:00
ssrf_protection.go Initial commit 2026-06-03 10:01:10 +08:00
str.go Initial commit 2026-06-03 10:01:10 +08:00
sys_log.go Initial commit 2026-06-03 10:01:10 +08:00
system_monitor.go Initial commit 2026-06-03 10:01:10 +08:00
system_monitor_unix.go Initial commit 2026-06-03 10:01:10 +08:00
system_monitor_windows.go Initial commit 2026-06-03 10:01:10 +08:00
topup-ratio.go Initial commit 2026-06-03 10:01:10 +08:00
totp.go Initial commit 2026-06-03 10:01:10 +08:00
url_validator.go Initial commit 2026-06-03 10:01:10 +08:00
url_validator_test.go Initial commit 2026-06-03 10:01:10 +08:00
utils.go Initial commit 2026-06-03 10:01:10 +08:00
validate.go Initial commit 2026-06-03 10:01:10 +08:00
verification.go Initial commit 2026-06-03 10:01:10 +08:00