Posts by Jarod Cavalcante • 1 point
2 posts
-
0
votes2
answers72
viewsA: Mongoose’s Findone method is running in infinite loop
Guys, I got the problem solved. The following is, as we see, my code after checking if the user exists, it creates two headers and redirects to the route '/admin'. So, in the GET method of the admin…
-
0
votes2
answers72
viewsQ: Mongoose’s Findone method is running in infinite loop
I have the following problem. I have a Findone method to search if a user exists in the database, according to the user and password. But when I run the method - using Inuit, it ends up in an…