from django.urls import path
from .views.customer_login import customer_login
from .views.add_company_user import add_company_user
from .views.company_user_login import company_user_login
from .views.forgot_password import forgot_password, forgot_password_reset_confirm
from .views.logout import custom_logout_view
from .views.delete_update_company_users import update_company_user, delete_company_user, change_user_password, \
    change_user_password_self

app_name = 'accounts'

urlpatterns = [
    path('company_user_login/', company_user_login, name='company_user_login'),
    path('customer_login/', customer_login, name='customer_login'),
    path('add_company_user/', add_company_user, name='add_company_user'),
    path('update_company_user/', update_company_user, name='update_company_user'),
    path('delete_company_user/<int:company_user_id>/', delete_company_user, name='delete_company_user'),
    path('change_user_password/', change_user_password, name='change_user_password'),
    path('change_user_password_self/', change_user_password_self, name='change_user_password_self'),
    path('admin/logout/', custom_logout_view, name='custom_logout'),
    path('logout/', custom_logout_view, name='user_logout'),

    path('forgot_password/', forgot_password, name='password_reset'),
    path('reset/<uidb64>/<token>/', forgot_password_reset_confirm, name='forgot_password_reset_confirm'),
]
