Doubt for creating online quiz with user authentication

Sir jo online test bante hai usme ejs use hota hai ya fir vho public folder ke andher html,css,or dom se bante hai.?

Can you elaborate the problem?

Sir maine sabse pehle user authentication kardiya usme maine ejs use kiya hai for rendering the dashboard,login,register page. when the user loged in he will directed to the dashboard and in the dashboard there is a card which display the start test. yha tak to koi dikkat nahi aayii. Sir fir maine ek test bnaya hai us test naam ke folder mai maine test.html,test.css,or dom use kiya or questions naam ka ek array bnadiya. jab user ensure authenticated ho gaya tab main router.use(’/start’,ensureAuthenticated,express.static(‘test’)) kardiya fir test shuru ho gaya jab user submit karta hai to uska score maine ajax with jquery use karke server pe bhej diya.
problem ab aarhi hai ki uska score database mai to chal gaya par ek hi user ke email id pe baki sabke score database mai chale gaye. Meko ye nahi use karna aa rha jab user loged in hogaya to uski detail mere paas ab kaise aaye.

user ager authenticated ha, aur passport middlewares laga rakhe ha, then you can get user details by req.user.
Try console.log(req.user) in one of your routes and see what you get…