Simple authorization middleware. If a req.session.user is in the administrator array the request will get nexted otherwise you get redirected to the login string.
/* string: login url */ /* array: [res.session.user] */
var app = ;app;
This module only does authorization you still need authentication middleware that sets a req.session.user. Jungles Auth Persona is an example of such using Mozilla Persona.
mocha.js and should.js is needed.