Problems with nodepartport

  node.js, question
var express=require("express");
 var cookieParser=require("cookie-parser");
 var session=require("express-session");
 var passport=require("passport");
 var LocalStrategy=require("passport-local").Strategy;
 
 var app=new express();
 
 app.use(cookieParser());
 app.use(session({ secret: 'keyboard cat' , resave: false, saveUninitialized: false}));
 
 app.use(passport.initialize());
 app.use(passport.session());
 
 
 
 
 passport.use(new LocalStrategy(
 function(username, password, cb) {
 console.log(";  kflasjfaskfjas");
 var username_details="a",password_details="b";
 if (username!  ==username_details){
 console.log("1");
 return cb(null,false);
 bracket
 if (password!  ==password_details) {
 console.log("2");
 return cb(null, false);
 bracket
 console.log(user);
 return cb(null,user);
 }));
 
 app.post('/login',function(req,res,next){
 var post="";
 req.on("data",function(chunk){
 Postplus =chunk;
 });
 req.on("end",function (){
 console.log(util.inspect(querystring.parse(post)));
 next();
 })
 },
 passport.authenticate('local',
 bracket
 successRedirect: '/',
 failureRedirect: '/login'
 })
 );
 
 
 
 var server=app.listen(9000,function (){
 console.log("the web is start");
 });

Why can’t I log in if my user name and password are entered correctly? ? ? Is passport used this way?
passport.use(new LocalStrategy(

function(username, password, cb) {
 console.log(";  kflasjfaskfjas");
 var username_details="a",password_details="b";
 if (username!  ==username_details){
 console.log("1");
 return cb(null,false);
 bracket
 if (password!  ==password_details) {
 console.log("2");
 return cb(null, false);
 bracket
 console.log(user);
 return cb(null,user);
 }));
 There was no implementation at all.

Everyone asked for advice, thank you