from django.urls import path
from . import views

app_name = 'accounts'

urlpatterns = [
    # Authentification
    path('login/', views.login_view, name='login'),
    path('logout/', views.logout_view, name='logout'),
    path('register/', views.register_view, name='register'),
    
    # Vérification email
    path('verify-email/<str:token>/', views.verify_email_view, name='verify_email'),
    path('resend-verification/', views.resend_verification_view, name='resend_verification'),
    
    # Réinitialisation de mot de passe
    path('password-reset/', views.password_reset_request, name='password_reset_request'),
    path('password-reset/sent/', views.password_reset_sent, name='password_reset_sent'),
    path('password-reset/confirm/<uidb64>/<token>/', views.password_reset_confirm, name='password_reset_confirm'),
    path('password-reset/complete/', views.password_reset_complete, name='password_reset_complete'),
    
    # Vérifications AJAX
    path('check-email/', views.check_email_exists, name='check_email'),
    path('check-licence/', views.check_licence_exists, name='check_licence'),
    
    # Profil utilisateur
    path('profile/', views.profile_view, name='profile'),
    path('profile/edit/', views.edit_profile_view, name='edit_profile'),
    path('profile/change-password/', views.change_password_view, name='change_password'),
    path('mes-inscriptions/', views.mes_inscriptions, name='mes_inscriptions'),
    
    # Recherche
    path('recherche/', views.recherche_joueur, name='recherche'),
]
