claudioc / jingo

Node.js based Wiki
MIT License
1.02k stars 184 forks source link

Make authorization.validMatches work as expected. #42

Closed abrander closed 10 years ago

abrander commented 10 years ago

A small error in routes/auth.js results in tools.isAuthorized() always being called with the second argument undefined, which effectively will validate anyone regardless of the setting of validMatches in the config file.

This PR fixes that.

claudioc commented 10 years ago

Nice catch, thanks. A relic from the old code of pre-1.0

claudioc commented 10 years ago

Release 1.0.2 npm package updated