Skip to content

Instantly share code, notes, and snippets.

@cjblomqvist
Created July 21, 2012 10:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjblomqvist/3155434 to your computer and use it in GitHub Desktop.
Save cjblomqvist/3155434 to your computer and use it in GitHub Desktop.
expressApp.post('/', function( req, res, next ) {
var
model = req.getModel();
model.fetch(
store.query('people').login(req.body),
function( err, scoped_user ) {
var
scoped_user_get = scoped_user.get();
if( typeof scoped_user_get !== 'undefined' ) {
res.redirect('/');
}
}
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment