I am writing a script in which user can reset his password. 

User will get an email like 

[My example](http://example.com/resetpassword/email_token)

when user will click on that link. a form will open 
and user can enter a new password. 
this is my route code

```
app.get('/resetpassword/:token', function (req, res, next) {
        var fileLocation = path.resolve(__dirname + '/../public/resetpassword.html');
        console.log(fileLocation);
        res.sendfile(fileLocation);
    });

    app.post('/setnewpassword', function(req,res,next){
                console.dir(req.body);
    });

```

and my html is there 

```
   <form action="/setnewpassword" method="POST">
        <div>
            <label>Password:</label>
            <input type="password" name="password" />
        </div>
        <input type="submit" value="Submit" />
    </form>

```

Now problem is that i am not getting params under **app.post('/setnewpassword'** 

Any idea? how to get params under setnewpassword. 

I want to use POST method only