mirror of
https://github.com/zhigang1992/deployd.git
synced 2026-05-23 04:47:26 +08:00
Merge branch '0.5' of https://github.com/ritch/deployd into 0.5
This commit is contained in:
3
TODO.md
3
TODO.md
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user