We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
**const User = mongoose.model('Users', UserSchema);
User.register({username:'username', active: false}, 'password', function(err, user) { if (err) { ... }
const authenticate = User.authenticate(); authenticate('username', 'password', function(err, result) { if (err) { ... }
// Value 'result' is set to false. The user could not be authenticated since the user is not active
}); });** This belongs to the README
After implementing this error is returned which tells the username was not given, even after giving an username as an input
The text was updated successfully, but these errors were encountered:
I am sorry if this is a silly issue and if it has a silly answer, I tried and searched for a long time and did not get any satisfactory answer.
Sorry, something went wrong.
No branches or pull requests
**const User = mongoose.model('Users', UserSchema);
User.register({username:'username', active: false}, 'password', function(err, user) {
if (err) { ... }
const authenticate = User.authenticate();
authenticate('username', 'password', function(err, result) {
if (err) { ... }
});
});** This belongs to the README
After implementing this error is returned which tells the username was not given, even after giving an username as an input
The text was updated successfully, but these errors were encountered: