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

This commit is contained in:
2025-04-16 11:01:43 +05:00
parent e0a80d4a00
commit dd21b848b9
7 changed files with 317 additions and 33 deletions

View File

@ -4,7 +4,7 @@ from django.urls import path
from knox import views as knox_views
from .views import (
LoginView,
CreateUserView,
CreateTemporaryUserView,
ManageUserView,
KnoxTokenListApiView,
ListUserView,
@ -18,11 +18,13 @@ from .views import (
RetrieveUpdateDestroyIslandView,
filter_user,
UpdateUserWalletView,
VerifyOTPView,
)
urlpatterns = [
path("create/", CreateUserView.as_view(), name="create"),
path("register/", CreateTemporaryUserView.as_view(), name="register"),
path("register/verify/", VerifyOTPView.as_view(), name="verify-otp"),
path("profile/", ManageUserView.as_view(), name="profile"),
path("login/", LoginView.as_view(), name="knox_login"),
path("logout/", knox_views.LogoutView.as_view(), name="knox_logout"),