added route for shortcut login

This commit is contained in:
2026-10-15 21:24:21 +02:00
parent 3175067af5
commit 95da8038f0
3 changed files with 141 additions and 0 deletions
+16
View File
@@ -131,6 +131,22 @@ owner can change the list itself or its sharing settings.
Administrators can create additional registration groups from `/groups`.
### Login by password hash
Opening `/<hashedpassword>` signs in the user whose stored `password_hash` text
after the third colon exactly matches that URL segment, then redirects to the
lists page. For example, `scrypt:32768:8:1$salt$digest` uses `/1$salt$digest`.
URL-encode the suffix when building the link. Full hashes are not accepted.
The account must be approved and have a positive group ID. Unknown suffixes and
suffixes shared by multiple accounts return 404.
Existing named routes such as `/login` continue to work normally.
Treat this link as a password: anyone with it can sign in, and URLs may appear
in browser history and server/proxy access logs. The link has no expiry; changing
the user's password invalidates it (but does not end existing sessions). Responses
disable caching and referrer transmission. Use HTTPS and configure access logs
to omit these credential-bearing paths.
## Item input
L@pp extracts simple quantities and units from item text. For example: