1
0
Fork 0

Compare commits

..

No commits in common. "6feab9ef6853b73184dffbe69657ff5c1dcf4558" and "ff55932d44fca7a14cb660b429e36d28423b47b2" have entirely different histories.

3 changed files with 3 additions and 4 deletions

View File

@ -86,7 +86,7 @@ models.authCode = new Schema({
applicationId: Schema.Types.ObjectId, // reference to application
userId: Schema.Types.ObjectId, // reference to user
token: String, // generated token, only usable in combination with userId and applicationId
timestamp: { type: Date, default: Date.now, index: {unique: true, expires: '5m'} }
timestamp: { type: Date, default: Date.now }
});
module.exports = (con) => {

View File

@ -33,8 +33,7 @@ methods.connect = async () => {
mongoose.connect(cfg.mongoose.uri, {
useNewUrlParser: true,
useUnifiedTopology: true,
useFindAndModify: false,
useCreateIndex: true
useFindAndModify: false
});

View File

@ -82,7 +82,7 @@ methods.start = () => {
// Sessions
session_options = {
secret: cfg.web.sessionKey,
resave: true,
resave: false,
saveUninitialized: false,
cookie: {
maxAge: cfg.web.cookieMaxAge