i701
99982d13d5
Enhance environment variable handling, add Celery configuration, and implement device expiration notification tasks
2025-04-24 10:42:22 +05:00
i701
ee8145f07f
Add environment variable checks for OMADA_PROXY_URL and enhance payment verification logic
2025-04-23 10:43:39 +05:00
i701
929c6168a4
Refactor payment verification to use PAYMENT_BASE_URL from environment variables and improve error handling for missing configuration
2025-04-23 10:03:04 +05:00
i701
2431793886
Fix SMS API configuration to provide default values for missing environment variables
2025-04-19 16:31:33 +05:00
i701
c006525aaa
Update OTP generation interval, enhance SMS sending functionality, and add age validation for temporary user registration
2025-04-19 16:18:45 +05:00
i701
f77779a84f
Remove throttling for CreateTemporaryUserView and VerifyOTPView
2025-04-18 14:51:25 +05:00
i701
887ffbb4d0
Add filter_temporary_user view to retrieve TemporaryUser by id_card or mobile
2025-04-18 13:39:57 +05:00
i701
ac5675e923
Refactor VerifyOTPView to check for existing TemporaryUser and return appropriate error messages
2025-04-18 11:36:48 +05:00
i701
900a87466f
Add mobile number check in VerifyOTPView to prevent duplicate registrations
2025-04-17 23:59:42 +05:00
i701
7777545bec
Refactor user verification to use PEOPLE_API_URL and added error handling for missing environment variable
2025-04-17 19:23:13 +05:00
i701
88a2b8ead2
Enhance CreateTemporaryUserView to check for existing users in both TemporaryUser and User models
2025-04-17 14:11:46 +05:00
i701
1401c3ac37
Fixed person api checking with database user for verification
2025-04-16 13:17:35 +05:00
i701
fd8207c34d
add pyotp to requirements
2025-04-16 11:09:06 +05:00
i701
bfb34f4097
Update tzdata version to 2025.2 in requirements.txt
2025-04-16 11:05:47 +05:00
i701
dd21b848b9
Add TemporaryUser model and related functionality for user registration and OTP verification
2025-04-16 11:01:43 +05:00
i701
e0a80d4a00
registration and verify abuse WIP
2025-04-15 14:01:47 +05:00
i701
9f3f586181
update healthcheck response message
2025-04-12 10:05:13 +05:00
i701
4c722752a4
update README.md
2025-04-12 09:59:11 +05:00
i701
b8d9f5cf87
Refactor VerifyPaymentView to include checks for payment status and user authorization. Update logging level in settings.py to suppress certain logs during testing. Add comprehensive tests for device management in DeviceAPITestCase.
2025-04-11 17:06:28 +05:00
i701
b6303a2c23
Refactor create_superuser method in CustomUserManager to include email parameter in user creation.
2025-04-11 12:13:28 +05:00
i701
10b3800171
Refactor VerifyPaymentView to improve wallet payment handling and response messages. Remove redundant insufficient funds check and enhance failure message clarity.
2025-04-11 00:41:44 +05:00
i701
f8253d572d
Enhance VerifyPaymentView with user authorization check, streamline payment verification process, and improve response messages. Update settings.py for consistent formatting and clarity in PASSWORDLESS_AUTH configuration.
2025-04-10 21:50:21 +05:00
i701
9595476569
Refactor UpdatePaymentSerializer to include only number_of_months field, add DeletePaymentView for payment deletion, and enhance VerifyPaymentView with payment_id lookup. Introduce pending_payment_id field in DeviceSerializer to track unpaid payments.
2025-04-08 21:38:43 +05:00
i701
c3abdd8e34
Add has_a_pending_payment field to Device model and update related views for payment handling
2025-04-07 22:24:52 +05:00
i701
c127c5d093
Add registered field to CreateDeviceSerializer and enhance BlockDeviceSerializer with reason_for_blocking and blocked_by fields
2025-04-06 22:40:07 +05:00
i701
b415d8f35b
Add BlockDeviceSerializer and DeviceBlockAPIView for blocking devices
2025-04-06 21:38:41 +05:00
i701
a8adddfda4
Add authorization check in UpdateUserWalletView to restrict updates to the user's own wallet
2025-04-05 22:50:14 +05:00
i701
2368ff408a
Add number_of_months field to UpdatePaymentSerializer and implement validation in UpdatePaymentAPIView
2025-04-05 22:38:08 +05:00
i701
b87dcfaf26
Add UpdateUserWalletView and CustomUserByWalletBalanceSerializer for wallet balance updates
2025-04-05 20:53:06 +05:00
i701
d67794df62
Add wallet_balance and mobile fields to CustomUserSerializer
2025-04-05 19:08:07 +05:00
i701
93e50b696c
Add PaymentDetailAPIView for retrieving payment details and update URL routing
2025-04-05 18:58:12 +05:00
i701
02f680d579
Refactor payment views: rename CreatePaymentView to ListCreatePaymentView, add payment retrieval endpoint, and enhance queryset filtering for user-specific payments.
2025-04-05 17:23:18 +05:00
i701
80e388a2a0
Refactor CreatePaymentView to improve device retrieval logic by using filter instead of get_object_or_404, enhancing error handling for non-existent devices.
2025-04-05 16:14:28 +05:00
i701
d386c7e37c
Add device existence check in CreatePaymentView to handle invalid device IDs
2025-04-05 16:10:24 +05:00
i701
43f9b7ef7c
Enhance User model: add email field with unique constraint, update id_card field to allow null values, and include verified field. Update UserAdmin to display verified field. Improve device listing to filter by logged-in user.
2025-03-28 22:25:30 +05:00
i701
ddfbeba2f4
Refactor User model: update mobile field to allow null values, enforce unique id_card, and implement user filtering API endpoint
2025-03-26 22:49:11 +05:00
i701
aa69977d63
update mobile field in User model to set default value to 0 and create corresponding migrations
2025-03-24 15:29:19 +05:00
i701
7c940c9dd2
remove null true for mobile field
2025-03-24 15:27:10 +05:00
i701
d44b2ad6af
add unique mobile number migrations
2025-03-24 15:17:42 +05:00
i701
02b6a64674
make user mobile number unique
2025-03-24 15:14:49 +05:00
i701
d29e61c7da
revert back to single settings.py file to fix authorization header not reading issue
2025-03-24 14:03:23 +05:00
i701
07d93d4e13
remove CSRF_COOKIE_DOMAIN setttings variable for prod
2025-03-22 22:47:39 +05:00
i701
4f7aa3b682
Update email configuration in Django settings to include default values for environment variables
2025-03-15 13:45:27 +05:00
i701
5db5da4c04
update requirements
2025-03-13 23:36:38 +05:00
i701
9c975944b8
Refactor Django settings module and environment configuration
...
- Move settings to a modular configuration structure
- Update environment variables in .env.example
- Modify DJANGO_SETTINGS_MODULE references across project files
- Simplify and standardize environment variable naming
2025-03-03 22:11:13 +05:00
i701
2c3f550978
Enhance Django settings security and configuration
...
- Add dynamic secret key generation with fallback
- Improve caching configuration with environment-based settings
- Update logging configuration with more granular log levels
- Strengthen security headers and SSL/HTTPS settings
- Add default values for security-related configurations
2025-02-14 00:09:43 +05:00
i701
166a44bfc7
Update Django settings for allowed hosts configuration
...
- Add dynamic ALLOWED_HOSTS configuration using environment variables
- Simplify host configuration by splitting allowed hosts string
- Remove redundant ALLOWED_HOSTS setting in production block
2025-02-13 23:34:30 +05:00
i701
c1806f05b7
add example .env file
2025-02-13 22:50:17 +05:00
i701
fea31cd651
Refactor Docker and Django configuration
...
- Update Dockerfile to use Python 3.11-slim and optimize build steps
- Remove Dockerfile.prod and update docker-compose.yml
- Remove entrypoint.sh and twilio dependency
- Modify Django settings for production security and configuration
- Update user serializer to include group permissions
- Enhance CSRF and SSL configuration settings
2025-02-12 19:27:05 +05:00
i701
eb600b7a0c
Update storage configuration and .gitignore
...
- Switch from AWS S3 to local file storage
- Add .env.example to .gitignore
- Remove AWS-related configuration in settings.py
2025-02-08 16:15:49 +05:00
i701
c1fc07e3e2
Refactor Docker configuration and API endpoints
...
- Merged production and development Docker configurations
- Updated Dockerfile to use multi-stage build
- Removed separate Dockerfile.prod
- Modified docker-compose.yml for production settings
- Added new API endpoints for user filtering by ID card
- Updated serializers and views for Atoll and Island management
- Enhanced user and atoll-related filters and views
2025-01-24 11:43:18 +05:00
i701
f6f77bb0e5
Add wallet balance to User model and implement Atoll/Island management
...
- Added `wallet_balance` field to the User model.
- Updated UserAdmin to include `wallet_balance` in the admin interface.
- Created serializers and views for Atoll and Island management.
- Implemented endpoints for listing, creating, and updating Atolls and Islands.
- Enhanced payment processing with UUIDs for Payment and Topup models.
- Added migration files for new fields and constraints.
- Improved error handling and validation in various views.
- Updated email templates for better responsiveness and SEO.
2025-01-20 20:59:16 +05:00
i701
4d0eb86478
Initial commit
2025-01-20 14:33:03 +05:00