3x-ui/web/service
Sora39831 5f83415e95 feat: add user registration with role-based access
- Add Role field to User model (admin/user) with uniqueIndex on Username
- Add POST /register endpoint with optional Cloudflare Turnstile verification
- Add RegisterUser service with bcrypt password hashing and duplicate detection
- Set default admin user role to "admin", new registrations get "user"
- Add turnstileSecretKey setting and GetTurnstileSecretKey getter
- Add i18n keys (userExists, errorRegister) to all 13 translation files
2026-04-02 23:49:30 +08:00
..
config.json dokodemo-door, socks renamed to mixed, tunnel 2025-09-09 13:57:40 +02:00
inbound.go fix: stop overwriting client_traffics.enable with JSON enable in GetClientTrafficByEmail (#3931) 2026-03-17 21:20:24 +01:00
outbound.go fix security issue 2026-02-09 23:36:10 +01:00
panel.go docs: add comments for all functions 2025-09-20 09:35:50 +02:00
server.go v2.8.10 2026-02-11 18:21:43 +01:00
setting.go feat: add user registration with role-based access 2026-04-02 23:49:30 +08:00
tgbot.go feat(tgbot): send connection links and qrs on client creation (closes #3320)\n\n- Refactored inline keyboards into getCommonClientButtons to respect DRY\n- Extended SubmitAddClient callback handlers to dispatch individual links and QR codes to the bot chat on success. (#3888) 2026-03-17 22:09:49 +01:00
turnstile.go feat: add user registration with role-based access 2026-04-02 23:49:30 +08:00
user.go feat: add user registration with role-based access 2026-04-02 23:49:30 +08:00
warp.go docs: add comments for all functions 2025-09-20 09:35:50 +02:00
xray.go Return nil if no error in GetXrayErr 2026-01-13 17:40:52 +01:00
xray_setting.go feat: migrate settings to JSON file, add Cloudflare SSL in installer 2026-04-02 16:16:52 +08:00