42 Commits

Author SHA1 Message Date
7e2f6699b1
Refactor imports in admin.py and update MAC address handling in views.py to improve code clarity and error handling
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m31s
2025-06-08 15:23:18 +05:00
38d80709db
Enhance UserAdmin save logic to auto-generate email from mobile or user ID; improve token creation logging and user existence check
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m18s
2025-06-08 14:32:30 +05:00
4db9d7fabd
Refactor device management: add vendor field, enhance admin display, and improve MAC address handling
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m18s
2025-06-01 19:27:04 +05:00
e1c862184e
Log user verification failure message in verify_user_with_person_api_task
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m27s
2025-05-31 19:30:28 +05:00
a05852f3f6
Fix user verification logging to handle None values for atoll and island attributes
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m15s
2025-05-31 19:25:18 +05:00
907b713082
Remove unused imports and clean up OTP message formatting in CreateTemporaryUserView
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m29s
2025-05-31 14:01:56 +05:00
cdd032ac54
Add SMS and Telegram notification functions to handle user verification messages
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m15s
2025-05-31 13:40:29 +05:00
15f885a4cb
Refactor payment permissions assignment to include all permissions except delete_payment
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m7s
2025-05-31 12:41:14 +05:00
5b4d0e6488
Refactor send_otp function to remove unused otp parameter and improve clarity
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 2m35s
2025-05-30 22:15:14 +05:00
e0dfc28590
Add environment variable checks for OMADA_SITE_ID, OMADA_GROUP_ID, and OMADA_PROXY_URL inside function calls
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m15s
2025-05-30 14:23:41 +05:00
5600a5e8e6
Refactor environment variable loading for OMADA_SITE_ID and OMADA_GROUP_ID to include default values
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m32s
2025-05-30 14:17:39 +05:00
12074c7752
add default values to .env variables for build step
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m35s
2025-05-30 14:14:39 +05:00
cc3d2ab3b7
Remove environment variable check for SMS_API_URL and SMS_API_KEY during initialization
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m46s
2025-05-30 14:07:47 +05:00
81f907b7bf
Add type hint to __str__ method in TemporaryUser model
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 2m12s
2025-04-25 15:32:19 +05:00
83db42cc60
Refactor and enhance device management and authentication features
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 4m12s
- Updated the `reverse_dhivehi_string` function to correct the range for combining characters.
- Added new device handling in the health check view and integrated the `add_new_devices_to_omada` task.
- Improved date handling in `CreateTemporaryUserView` to ensure proper string conversion.
- Enhanced OTP sending by converting mobile numbers to strings.
- Implemented MAC address validation in the `Device` model using a custom validator.
- Removed unnecessary fields from the `CreateDeviceSerializer`.
- Normalized MAC address format in the `DeviceListCreateAPIView`.
- Updated the `djangopasswordlessknox` package to improve code consistency and readability.
- Added migration to enforce MAC address validation in the database.
2025-04-25 14:37:27 +05:00
99982d13d5 Enhance environment variable handling, add Celery configuration, and implement device expiration notification tasks
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 13m45s
2025-04-24 10:42:22 +05:00
2431793886
Fix SMS API configuration to provide default values for missing environment variables
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m57s
2025-04-19 16:31:33 +05:00
c006525aaa
Update OTP generation interval, enhance SMS sending functionality, and add age validation for temporary user registration
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m50s
2025-04-19 16:18:45 +05:00
f77779a84f
Remove throttling for CreateTemporaryUserView and VerifyOTPView
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m14s
2025-04-18 14:51:25 +05:00
887ffbb4d0
Add filter_temporary_user view to retrieve TemporaryUser by id_card or mobile
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m32s
2025-04-18 13:39:57 +05:00
ac5675e923
Refactor VerifyOTPView to check for existing TemporaryUser and return appropriate error messages
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m15s
2025-04-18 11:36:48 +05:00
900a87466f
Add mobile number check in VerifyOTPView to prevent duplicate registrations
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m45s
2025-04-17 23:59:42 +05:00
7777545bec
Refactor user verification to use PEOPLE_API_URL and added error handling for missing environment variable
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 5m3s
2025-04-17 19:23:13 +05:00
88a2b8ead2 Enhance CreateTemporaryUserView to check for existing users in both TemporaryUser and User models
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m19s
2025-04-17 14:11:46 +05:00
1401c3ac37 Fixed person api checking with database user for verification
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m15s
2025-04-16 13:17:35 +05:00
dd21b848b9 Add TemporaryUser model and related functionality for user registration and OTP verification
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m19s
2025-04-16 11:01:43 +05:00
e0a80d4a00 registration and verify abuse WIP
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m27s
2025-04-15 14:01:47 +05:00
9f3f586181
update healthcheck response message
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m3s
2025-04-12 10:05:13 +05:00
b6303a2c23
Refactor create_superuser method in CustomUserManager to include email parameter in user creation.
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 2m44s
2025-04-11 12:13:28 +05:00
a8adddfda4
Add authorization check in UpdateUserWalletView to restrict updates to the user's own wallet
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 2m32s
2025-04-05 22:50:14 +05:00
b87dcfaf26
Add UpdateUserWalletView and CustomUserByWalletBalanceSerializer for wallet balance updates
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 2m12s
2025-04-05 20:53:06 +05:00
d67794df62
Add wallet_balance and mobile fields to CustomUserSerializer
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 2m57s
2025-04-05 19:08:07 +05:00
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.
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 2m39s
2025-03-28 22:25:30 +05:00
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
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
7c940c9dd2
remove null true for mobile field 2025-03-24 15:27:10 +05:00
d44b2ad6af
add unique mobile number migrations 2025-03-24 15:17:42 +05:00
02b6a64674
make user mobile number unique 2025-03-24 15:14:49 +05:00
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
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
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
4d0eb86478 Initial commit 2025-01-20 14:33:03 +05:00