diff --git a/packages/cms/package.json b/packages/cms/package.json index 1add223a1..eefb73e5d 100644 --- a/packages/cms/package.json +++ b/packages/cms/package.json @@ -4,7 +4,7 @@ "*.css" ], "description": "Content Management System for Canon sites.", - "version": "0.20.8", + "version": "0.20.9", "author": "James Mullen", "license": "MIT", "bin": { diff --git a/packages/cms/src/components/fields/ProfileSearch.css b/packages/cms/src/components/fields/ProfileSearch.css index faf464d1f..5b99b8142 100644 --- a/packages/cms/src/components/fields/ProfileSearch.css +++ b/packages/cms/src/components/fields/ProfileSearch.css @@ -191,7 +191,7 @@ } } - &.inputFontSize-sm, @mixin max-sm { + &.inputFontSize-sm { & .cms-profilesearch-icon { width: 0.35em; left: 0.22em; diff --git a/packages/core/package.json b/packages/core/package.json index 6a68f0228..92467fc22 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -3,7 +3,7 @@ "sideEffects": [ "*.css" ], - "version": "0.24.1", + "version": "0.24.2", "description": "Reusable React environment and components for creating visualization engines.", "main": "./src/index.js", "types": "./types/index.d.ts", diff --git a/packages/core/src/auth/auth.js b/packages/core/src/auth/auth.js index da5d0be78..f21809c18 100644 --- a/packages/core/src/auth/auth.js +++ b/packages/core/src/auth/auth.js @@ -41,7 +41,12 @@ module.exports = function(app) { }) ); - app.get("/auth/isAuthenticated", isAuthenticated, (req, res) => res.json({...req.user, authenticated: true})); + app.get("/auth/isAuthenticated", isAuthenticated, (req, res) => { + const sanitizedUser = {...req.user, authenticated: true}; + delete sanitizedUser.password; + delete sanitizedUser.salt; + return res.json(sanitizedUser); + }); app.get("/auth/logout", (req, res) => { req.logout();