mirror of
https://github.com/Permissionless-Software-Foundation/ipfs-bch-wallet-consumer.git
synced 2026-09-21 16:52:03 -07:00
Remove user salt from deserialize
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, '-password')
|
||||
const user = await User.findById(id, '-password -salt')
|
||||
done(null, user)
|
||||
} catch(err) {
|
||||
done(err)
|
||||
|
||||
Reference in New Issue
Block a user