From d9ba5445e484afca3efccc64d0212f24c69a9484 Mon Sep 17 00:00:00 2001 From: clhilgert Date: Mon, 31 Jul 2023 17:55:45 -0500 Subject: [PATCH] fixed cookies and updated styles --- server/controllers/userController.js | 2 +- src/styles.css | 6 +++--- webpack.config.js | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/server/controllers/userController.js b/server/controllers/userController.js index 0296a67..f3b5682 100644 --- a/server/controllers/userController.js +++ b/server/controllers/userController.js @@ -53,7 +53,7 @@ userController.createUser = (req, res, next) => { goal, }) .then((user) => { - res.locals.user = user.id; + res.locals._id = user._id; return next(); }) .catch((err) => { diff --git a/src/styles.css b/src/styles.css index 7c0999b..24416d2 100644 --- a/src/styles.css +++ b/src/styles.css @@ -20,7 +20,7 @@ body { width: 400px; border-radius: 20px; background: rgb(0,36,11); - background: linear-gradient(90deg, rgba(0,36,11,1) 0%, rgba(122,244,122,1) 0%, rgba(227,254,208,1) 100%, rgba(103,242,2,1) 100%); + background: linear-gradient(90deg, rgba(0,36,11,1) 0%, rgb(171, 245, 171) 0%, rgba(227,254,208,1) 100%, rgba(103,242,2,1) 100%); } .login-text { @@ -45,7 +45,7 @@ body { border-radius: 8px; box-shadow: 1px 1px 3px rgb(223, 208, 208); background: rgb(0,36,11); -background: linear-gradient(90deg, rgba(0,36,11,1) 0%, rgba(215,252,214,1) 0%, rgba(247,176,176,1) 95%); + background: linear-gradient(90deg, rgba(0,36,11,1) 0%, rgba(220,246,220,1) 0%, rgba(255,255,255,1) 91%); } .login-button-container { @@ -118,7 +118,7 @@ background: linear-gradient(90deg, rgba(0,36,11,1) 0%, rgba(171,255,170,1) 0%, r border-width: 1px; box-shadow: 1px 1px 3px rgb(0, 0, 0); background: rgb(0,36,11); -background: linear-gradient(90deg, rgba(0,36,11,1) 0%, rgba(220,246,220,1) 0%, rgba(255,255,255,1) 91%); + background: linear-gradient(90deg, rgba(0,36,11,1) 0%, rgba(220,246,220,1) 0%, rgba(255,255,255,1) 91%); } .stats-outer-container { diff --git a/webpack.config.js b/webpack.config.js index 6a77c98..c72d8cd 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -48,7 +48,8 @@ module.exports = { '/login': 'http://localhost:3000', '/stats': 'http://localhost:3000', '/main': 'http://localhost:3000', - '/signup': 'http://localhost:3000' + '/signup': 'http://localhost:3000', + '/logout': 'http://localhost:3000' // add more as we add more endpoints } }