-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
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
[MissingUsernameError] No username was given #377
Comments
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
**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: