3x-ui/web/translation
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
..
translate.ar_EG.toml feat: add user registration with role-based access 2026-04-02 23:49:30 +08:00
translate.en_US.toml feat: add user registration with role-based access 2026-04-02 23:49:30 +08:00
translate.es_ES.toml feat: add user registration with role-based access 2026-04-02 23:49:30 +08:00
translate.fa_IR.toml feat: add user registration with role-based access 2026-04-02 23:49:30 +08:00
translate.id_ID.toml feat: add user registration with role-based access 2026-04-02 23:49:30 +08:00
translate.ja_JP.toml feat: add user registration with role-based access 2026-04-02 23:49:30 +08:00
translate.pt_BR.toml feat: add user registration with role-based access 2026-04-02 23:49:30 +08:00
translate.ru_RU.toml feat: add user registration with role-based access 2026-04-02 23:49:30 +08:00
translate.tr_TR.toml feat: add user registration with role-based access 2026-04-02 23:49:30 +08:00
translate.uk_UA.toml feat: add user registration with role-based access 2026-04-02 23:49:30 +08:00
translate.vi_VN.toml feat: add user registration with role-based access 2026-04-02 23:49:30 +08:00
translate.zh_CN.toml feat: add user registration with role-based access 2026-04-02 23:49:30 +08:00
translate.zh_TW.toml feat: add user registration with role-based access 2026-04-02 23:49:30 +08:00