Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions back-end/src/controllers/api/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,7 @@ module.exports = {
user: '[email protected]', // generated ethereal user
pass: 'girlscript2020', //account.pass
},
tls: {
rejectUnauthorized: false,
},
// Removed the tls configuration to use default secure settings
});

// setup email data with unicode symbols
Expand Down
5 changes: 5 additions & 0 deletions back-end/src/middlewares/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ module.exports = [
cookieSession({
name: 'session',
keys: ['123'],
domain: 'example.com', // Set to your domain
expires: new Date(Date.now() + 60 * 60 * 1000), // 1 hour expiration
httpOnly: true,
path: '/',
secure: true, // Ensure cookies are sent over HTTPS
}),
cookieParser(),
];