Good morning everyone,i did a login system using node.js + mongodb, and I used bcrypt to encrypt the
Good morning everyone,i did a login system using node.js + mongodb, and I used bcrypt to encrypt the password. It encrypts fine and is stored in the database. But when I try to log in and compare the entered password with the encrypted password stored in the database, it always returns false, indicating they don't match. I've searched a lot on Stack Overflow and even tried AI, but I couldn't find a solution. If anyone knows the solution or has encountered this before, Note: I've encountered this before, and the reason was a column in a MySQL database being limited to 50 characters while it needed 500, but in this case, I couldn't figure it out because MongoDB is not MySQL."


