#176 fix slug links with password protection

This commit is contained in:
Alan Grainger
2026-01-26 22:44:06 +13:00
parent b677269509
commit cfd42fb575
+2 -2
View File
@@ -105,8 +105,8 @@ class Immich {
}
const link = sharedLinkRes.link
// If this was a slug link, we need to also store session information for the ID-based key
if (request.req.session && !request.req.session[link.key]) {
// If this was a password-protected slug link, we need to also store session information for the ID-based key
if (request.password && request.req.session && !request.req.session[link.key]) {
request.req.session[link.key] = encrypt(JSON.stringify({
password: request.password,
expires: dayjs().add(1, 'hour').format()