havard / node-openid

OpenID for Node.js
MIT License
293 stars 100 forks source link

Fix a possible typo in `verifyReturnUrl` routine #152

Closed artch closed 8 years ago

artch commented 8 years ago

This check happens to be always invalid for me. The route for returnURL is registered in a nested router (using app.use from the main express app), and thus the assertionUrl.pathname option is not equal to receivedReturnUrl.pathname. I guess it is just a typo and should be fixed to the check against originalReturnUrl as in other places in the same if.