mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-06 21:24:10 +00:00
- 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 |
||
|---|---|---|
| .. | ||
| api.go | ||
| base.go | ||
| inbound.go | ||
| index.go | ||
| server.go | ||
| setting.go | ||
| util.go | ||
| websocket.go | ||
| xray_setting.go | ||
| xui.go | ||