Commit Graph
138 Commits
Author SHA1 Message Date
i701 a05852f3f6 Fix user verification logging to handle None values for atoll and island attributes 2025-05-31 19:25:18 +05:00
i701 907b713082 Remove unused imports and clean up OTP message formatting in CreateTemporaryUserView 2025-05-31 14:01:56 +05:00
i701 cdd032ac54 Add SMS and Telegram notification functions to handle user verification messages 2025-05-31 13:40:29 +05:00
i701 a9e1973f4a Add mib_reference assignment in VerifyPaymentView upon successful payment verification 2025-05-31 13:02:10 +05:00
i701 15f885a4cb Refactor payment permissions assignment to include all permissions except delete_payment 2025-05-31 12:41:14 +05:00
i701 85ff1fb67f Add mib_reference field to Payment model and set default ordering by created_at 2025-05-31 12:01:35 +05:00
i701 f8d6e78f90 Add HTTP status codes to responses in VerifyPaymentView for payment verification 2025-05-30 22:56:13 +05:00
i701 09591bf825 Update VerifyPaymentView to mark payment as paid and set payment method upon successful transfer 2025-05-30 22:36:59 +05:00
i701 5b4d0e6488 Refactor send_otp function to remove unused otp parameter and improve clarity 2025-05-30 22:15:14 +05:00
i701 e0dfc28590 Add environment variable checks for OMADA_SITE_ID, OMADA_GROUP_ID, and OMADA_PROXY_URL inside function calls 2025-05-30 14:23:41 +05:00
i701 5600a5e8e6 Refactor environment variable loading for OMADA_SITE_ID and OMADA_GROUP_ID to include default values 2025-05-30 14:17:39 +05:00
i701 12074c7752 add default values to .env variables for build step 2025-05-30 14:14:39 +05:00
i701 cc3d2ab3b7 Remove environment variable check for SMS_API_URL and SMS_API_KEY during initialization 2025-05-30 14:07:47 +05:00
i701 20db39ee55 Fix import statement for regex module in MAC address validation 2025-04-25 15:35:57 +05:00
i701 81f907b7bf Add type hint to __str__ method in TemporaryUser model 2025-04-25 15:32:19 +05:00
i701 83db42cc60 Refactor and enhance device management and authentication features
- 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
i701 0f19f0c15c Add Celery periodic task for deactivating expired devices and update requirements 2025-04-24 13:05:20 +05:00
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
shihaam ba0fa5a831 auto deploy - migrate 2025-04-16 11:33:48 +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
shihaam 0aa71c8e10 add mirror to gitea 2025-04-12 06:45:07 +05:00
shihaam ea26a93fb9 cleaner output 2025-04-12 04:38:17 +05:00
shihaam caba7107f8 cleaner output 2025-04-12 04:34:42 +05:00
shihaam b02a7eb47d down kohffa up kuraanee.. also this is api 2025-04-12 03:54:50 +05:00
shihaam 8670023233 f all that just deploy 2025-04-12 03:33:30 +05:00
shihaam c589798cf3 checking if key prints 2025-04-12 03:22:16 +05:00
shihaam 19f5b905bb checking if key prints 2025-04-12 03:20:27 +05:00
shihaam 63ce054bad add auto deploy 2025-04-12 03:08: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