mirror of
https://github.com/zhigang1992/deployd.git
synced 2026-05-21 00:28:24 +08:00
Fixed regression crash in user-collection
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user