don't save unitialised sessions

This commit is contained in:
Erik 2022-11-09 21:05:33 +02:00
parent e358f7fc97
commit 2a9748f79c
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -46,7 +46,7 @@ class Authenticator {
store: MongoStore.create({ client: mongo.client, dbName: mongo.database, touchAfter: 600 }), store: MongoStore.create({ client: mongo.client, dbName: mongo.database, touchAfter: 600 }),
secret, secret,
resave: false, resave: false,
saveUninitialized: true saveUninitialized: false
})); }));
this.passport = Passport; this.passport = Passport;