Commit Graph

9 Commits

Author SHA1 Message Date
Yoga Pangestu
14c35d2bde Implement email verification flow: add EmailVerificationToken model, update user registration and login status handling, and create verification endpoints 2026-07-25 13:48:00 +07:00
Yoga Pangestu
0893cc5d34 Refactor user management module: remove timezone field, add address, pob, and dob; update related schemas, services, and tests; simplify list users endpoint to support status filtering 2026-07-25 12:14:25 +07:00
Yoga Pangestu
7dceb01d89 Remove 'code' field from Plan model, schemas, factory, and service; update related tests and API endpoints 2026-07-24 13:02:29 +07:00
Yoga Pangestu
f1c3f28f95 Add toggle status functionality for business types and update listing filter 2026-07-24 11:47:45 +07:00
Yoga Pangestu
104a58e6e7 Add password reset functionality with email notifications
- Implemented endpoints for forgot password and reset password
- Added PasswordResetToken model and relationships
- Integrated email service using Resend for sending reset links
- Updated configuration for email and frontend URL
- Enhanced user model to include password reset tokens
- Added necessary schemas for password reset requests
- Updated requirements to include Resend SDK
- Created comprehensive documentation for the new feature
2026-07-22 20:22:58 +07:00
Yoga Pangestu
08cc2bebbe Add Google login functionality and update requirements
- Implement Google login endpoint with credential verification
- Add GoogleLoginRequest schema for handling login requests
- Update Settings class to include GOOGLE_CLIENT_ID
- Add google-auth package to requirements
2026-07-22 16:50:11 +07:00
Yoga Pangestu
4fa2db2a3c Update user status default to INACTIVE, add email verification check in login, and set email_verified_at for admin user in seeder 2026-07-19 23:57:43 +07:00
Yoga Pangestu
4458d352a2 Add authentication endpoints and JWT handling for user login 2026-07-19 23:51:50 +07:00
Yoga Pangestu
7bbe4e7295 Implement subscription, tenant, and user services with CRUD operations and associated tests
- Added subscription_service.py for managing subscriptions with functions to create, read, update, and delete subscriptions.
- Added tenant_service.py for managing tenants with functions to create, read, update, delete tenants, and assign users to tenants.
- Added user_service.py for managing users with functions to create, read, update, and delete users.
- Created tests for business types, plans, subscriptions, tenants, and users, ensuring proper functionality and error handling.
- Implemented pagination in user listing and included user profiles in responses.
- Established fixtures for database setup and teardown in tests.
2026-07-17 23:36:31 +07:00