Fixed regression crash in user-collection

This commit is contained in:
DallonF
2012-09-11 12:03:18 -07:00
parent c746e54b23
commit c5d6e84d5a

View File

@@ -84,7 +84,7 @@ UserCollection.prototype.handle = function (ctx) {
case 'POST':
if(ctx.url === '/login') {
var path = this.path
, credentials = ctx.req.body;
, credentials = ctx.req.body || {};
debug('trying to login as %s', credentials.username);