Registration (case-insensitive unique names, 8-256 char passwords, no email), sign-in with a generic error and a fresh session, internal-only ?next=, POST-only sign-out, password change that closes the other sessions. The failed-login backoff, the registration quota and the password-change guard live in the database so every web process shares them; the client IP is the last X-Forwarded-For hop. One responsive stylesheet with light/dark theme, labelled fields, alerts and no inline scripts or styles; Italian error pages and a readable CSRF failure. Mutation checks: open redirects, uncounted failures and a missing CSRF middleware are all caught. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
12 lines
322 B
Python
12 lines
322 B
Python
from django.urls import path
|
|
|
|
from . import views
|
|
|
|
app_name = "accounts"
|
|
urlpatterns = [
|
|
path("accedi/", views.login_view, name="login"),
|
|
path("registrati/", views.register_view, name="register"),
|
|
path("esci/", views.logout_view, name="logout"),
|
|
path("app/profilo/", views.profile_view, name="profile"),
|
|
]
|