Skip to content

Commit f7686bd

Browse files
save file
1 parent 91e61ff commit f7686bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blog/25-07-24/http-server/ex/login-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
}
5959

6060
var json = post(req);
61-
var user = users.find(user=>user.name===json.name);
61+
var user = users.find(user=>{console.log(user);return(user.name===json.name)});
6262
if(!user){
6363
console.log('user not found');
6464
error();

0 commit comments

Comments
 (0)