From cfd42fb5754cdaa11ced475f6fe90dd3cd07a994 Mon Sep 17 00:00:00 2001 From: Alan Grainger <16197738+alangrainger@users.noreply.github.com> Date: Mon, 26 Jan 2026 22:44:06 +1300 Subject: [PATCH] #176 fix slug links with password protection --- app/src/immich.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/immich.ts b/app/src/immich.ts index aa69c09..a6f7768 100644 --- a/app/src/immich.ts +++ b/app/src/immich.ts @@ -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()