fix: huge refactor

This commit is contained in:
2026-03-17 14:03:51 +01:00
parent be87ab4fa1
commit 71b02610d1
50 changed files with 2763 additions and 3516 deletions
+24 -1
View File
@@ -1,4 +1,27 @@
from django.contrib.auth.decorators import login_required
from django.urls import path
from django.utils.text import gettext_lazy as _
from web.views.users import (
login,
logout,
my_account,
register,
reset_password,
reset_password_confirm,
reset_password_email_sent,
)
app_name = 'users'
urlpatterns = []
urlpatterns = [
# users
path(_('login/'), login, name='login'),
path(_('logout/'), logout, name='logout'),
path(_('register/'), register, name='register'),
path(_('reset-password/'), reset_password, name='reset_password'),
path(_('reset-password/<uidb64>/<token>/'), reset_password_confirm, name='reset_password_confirm'),
path(_('reset-password/email-sent/'), reset_password_email_sent, name='reset_password_email_sent'),
path(_('my-account/'), login_required(my_account, login_url=_('/login/')), name='my_account'),
]