Authentication issue (passport, passport-local, passport-local-mongoose)

I make a simple signup and login system using passport, passport-local and passport-local-mongoose.
Like this,
2

Using sign up I created 4 account:

username========= password
1)colt===============12345
2)plabon=============12345
3)alifia==============123456
4)alifia2=============123456

Then, if I try to login using this information and if it’s correct, then it will redirect me to the /secret route.
But 3 and 4 accounts going well. But when I try to login using 1 and 2, the /secret route appears. But there is an another popup like this,

What does this popup mean? Why it’s just happening to 1 and 2, not 3 and 4?

Here is my app.js file.
Here is my user.js file.
Here is my database,

This pop-up from Chrome is related to the example username and password combination that you used. You can read more about this in:


2 Likes