
上QQ阅读APP看书,第一时间看更新
Hashed password and salt
The hashed_password and salt fields represent the encrypted user password that we will use for authentication.
mern-skeleton/server/models/user.model.js:
hashed_password: {
type: String,
required: "Password is required"
},
salt: String
The actual password string is not stored directly in the database for security purposes and is handled separately.