Files
santeh-ray/users/urls.py
Azimkin 80164b833b
All checks were successful
Build and Push Docker Image / build (push) Successful in 46s
feat: implement user authentication features (registration, activation, and password reset)
- Added email templates for activation and password reset (`activation_email.html`, `password_reset_email.html`, etc.)
- Created forms for registration (`RegisterForm`) and login (`LoginForm`) with custom validation
- Developed new pages for account activation (`activation_success.html`, `activation_invalid.html`), password reset workflow, and profile
- Configured email backend and environment file handling in settings
- Updated header template to conditionally display profile or login links based on authentication status
- Enhanced CSS styles for authentication-related pages and forms
2026-04-15 18:27:23 +02:00

18 lines
805 B
Python

from django.urls import path
from users import views
app_name = "users"
urlpatterns = [
path('login/', views.login, name='login'),
path('register/', views.register, name='register'),
path('logout/', views.logout, name='logout'),
path('activate/<uidb64>/<token>/', views.activate, name='activate'),
path('password-reset/', views.SantehRayPasswordResetView.as_view(), name='password_reset'),
path('password-reset/done/', views.SantehRayPasswordResetDoneView.as_view(), name='password_reset_done'),
path('reset/<uidb64>/<token>/', views.SantehRayPasswordResetConfirmView.as_view(), name='password_reset_confirm'),
path('reset/done/', views.SantehRayPasswordResetCompleteView.as_view(), name='password_reset_complete'),
path('profile/', views.profile, name='profile')
]