Spaces:
Runtime error
Runtime error
Commit History
-
feat(auth): implement multi-step user registration flow
Akshar2325- Rework the user sign-up process into a secure, 5-step flow to ensure user verification and profile completeness before activation. 【Flow】 - Introduce a 5-step registration process: - 1. Initial registration (email, password, name) - 2. Email verification via OTP - 3. Phone number registration - 4. Phone verification via OTP - 5. Profile completion (interests, bio) & account activation 【Database】 - Enhance `User` model with new profile fields and detailed statuses - Add `UserOtp` model to manage OTP generation, verification, and expiry - Add `UserInterest` model to capture user genre preferences - Introduce new enums for `USER_STATUS`, `OTP_TYPE`, and `OTP_PURPOSE` 【API】 - Implement new controller endpoints for each step of the flow - Restrict login access to users who have completed the entire process 【Integrations】 - Add `EmailModule` to send transactional emails (OTP, Welcome) via Brevo - Add `SmsModule` to send verification codes via Authkey SMS service 【Core】 - C…db3d93b
-
✨ feat(admin): introduce super admin models and authentication
Akshar2325- 【db】add `SuperAdmin`, `SuperAdminSession`, `SuperAdminCredential` models - 【core】create dedicated core services for new super admin entities - 【auth】implement a separate authentication module for super admins - 【auth】add jwt strategy, guard, and auth endpoints for super admin - 【shared】introduce `GetSuperAdmin` decorator and session types ♻️ refactor(auth): restructure modules and user authentication - 【app】replace generic `AuthModule` with `UserModule` and `SuperAdminModule` - 【auth】relocate user auth logic into a dedicated `modules/user/auth` - 【db】move password from `User` model to `UserCredential` for separation - 【repo】enhance base repository with `upsert` and auto soft-delete filter ✨ feat(query): implement advanced multi-criteria search - 【query】add `multi_search` capability to base query service - 【query】support `contains` and `equals` search types - 【query】implement dynamic relationship detection for accurate filtering 🔧 chore(project): update depen…f3abb0d