Login function using session
app.get('/auth/login',(req,res)=>{
var output = `
<form action="/auth/login" method="post">
<p>
<input typt="text" name="username" placeholder="username">
</p>
<p>
<input typt="password" name="password" placeholder="password">
</p>
<p>
<input type="submit">
</p>
</form>
`;
res.send(output);
});Last updated