NodeJS-PassportJS Giving The Certain Password
问题 I am making a admin which will request just for a certain passport. But when I type it I cannot log in ? How can I solve it ? const mongoose = require('mongoose'); const UserSchema = mongoose.Schema({ password:{ type: String, required: true } }); const User = module.exports = mongoose.model('User', UserSchema); In my command line, I created a users collectin and inserted a password:'sifre' This is my password.js : const LocalStrategy = require('passport-local').Strategy; const User = require(