login working

This commit is contained in:
counterweight 2025-02-17 01:18:43 +01:00
parent 48b12b71c2
commit a35fa7d0dc
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
9 changed files with 333 additions and 7 deletions

View file

@ -4,8 +4,10 @@ async function attachPublicKeyMiddleware(req, res, next) {
const publicKey = await sessionService.getPublicKeyRelatedToSession(
req.cookies.sessionUuid
);
req.cookies.publicKey = publicKey;
if (publicKey) {
req.cookies.publicKey = publicKey;
}
next();
}