Answer the question
In order to leave comments, you need to log in
How to change the user object for the local authorization strategy in Passport.js?
An example of unmodified sources is here.
There is the following code:
var userSchema = mongoose.Schema({
local: {
email: String,
password: String
}
});
var userSchema = mongoose.Schema({
local: {
id: String,
user: {
email: String,
password: String
}
}
});
node_modules\bcrypt-nodejs\bCrypt.js:642
throw "Incorrect arguments";
local.email
in local.user.email
in the following files:Answer the question
In order to leave comments, you need to log in
Try like this?
submit="signinForm.$valid && signinCtrl.addPlayer()"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question