login working
This commit is contained in:
parent
48b12b71c2
commit
a35fa7d0dc
9 changed files with 333 additions and 7 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue