mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-04-30 13:55:41 +00:00
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.
35 lines
981 B
Python
35 lines
981 B
Python
from django.urls import path
|
|
from djangopasswordlessknox.views import (
|
|
ObtainEmailCallbackToken,
|
|
ObtainMobileCallbackToken,
|
|
ObtainAuthTokenFromCallbackToken,
|
|
VerifyAliasFromCallbackToken,
|
|
ObtainEmailVerificationCallbackToken,
|
|
ObtainMobileVerificationCallbackToken,
|
|
)
|
|
|
|
urlpatterns = [
|
|
path(
|
|
"callback/auth/",
|
|
ObtainAuthTokenFromCallbackToken.as_view(),
|
|
name="auth_callback",
|
|
),
|
|
path("auth/email/", ObtainEmailCallbackToken.as_view(), name="auth_email"),
|
|
path("auth/mobile/", ObtainMobileCallbackToken.as_view(), name="auth_mobile"),
|
|
path(
|
|
"callback/verify/",
|
|
VerifyAliasFromCallbackToken.as_view(),
|
|
name="verify_callback",
|
|
),
|
|
path(
|
|
"verify/email/",
|
|
ObtainEmailVerificationCallbackToken.as_view(),
|
|
name="verify_email",
|
|
),
|
|
path(
|
|
"verify/mobile/",
|
|
ObtainMobileVerificationCallbackToken.as_view(),
|
|
name="verify_mobile",
|
|
),
|
|
]
|