Merge branch '0.5' of https://github.com/ritch/deployd into 0.5

This commit is contained in:
DallonF
2012-06-11 09:44:53 -07:00
2 changed files with 5 additions and 6 deletions

View File

@@ -15,8 +15,7 @@
- [x] files resource
- [x] config
- [x] dashboard / dev integration
- eg. microscripts
- auto generated dpd.js
- [x] auto generated dpd.js
- server and client version
- integration tests ported from 0.4
- add key check back to dashboard

View File

@@ -80,10 +80,10 @@ UserCollection.prototype.handle = function (ctx) {
return ctx.done(new Error('Not logged in'));
}
return this.find(ctx.session, {id: ctx.session.data.uid}, ctx.done);
return this.find(ctx.session, {id: ctx.session.data.uid}, ctx.dpd, ctx.done);
}
this.find(ctx.session, ctx.query, ctx.done);
this.find(ctx.session, ctx.query, ctx.dpd, ctx.done);
break;
case 'POST':
if(ctx.url === '/login') {
@@ -121,11 +121,11 @@ UserCollection.prototype.handle = function (ctx) {
}
if(ctx.query.id) {
this.save(ctx.session, ctx.body, ctx.query, done);
this.save(ctx.session, ctx.body, ctx.query, ctx.dpd, done);
} else {
this.store.first({email: ctx.body.email}, function (err, u) {
if(u) return ctx.done({errors: {email: 'is already in use'}});
uc.save(ctx.session, ctx.body, ctx.query, done);
uc.save(ctx.session, ctx.body, ctx.query, ctx.dpd, done);
})
}
break;