Skip to content

Commit

Permalink
fix(session): set plain user data in session instead of sequelize mod…
Browse files Browse the repository at this point in the history
…el (#1122)
  • Loading branch information
onyxvd authored May 17, 2024
1 parent f5ed5ce commit b974e0c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/initializers/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ module.exports = upgradeInitializer('ah17', {
if (!user) {
callback(null, false)
}
sessionData.user = user

// store plain user data in session
sessionData.user = user.get({ plain: true })
callback(null, sessionData)
}).catch(callback)
} else {
Expand Down

0 comments on commit b974e0c

Please sign in to comment.