mirror of
https://github.com/Permissionless-Software-Foundation/ipfs-bch-wallet-service.git
synced 2026-09-21 16:52:03 -07:00
Remove password from deserializeUser method of passport
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ passport.serializeUser((user, done) => {
|
||||
|
||||
passport.deserializeUser(async (id, done) => {
|
||||
try {
|
||||
const user = await User.findById(id)
|
||||
const user = await User.findById(id, '-password')
|
||||
done(null, user)
|
||||
} catch(err) {
|
||||
done(err)
|
||||
|
||||
Reference in New Issue
Block a user