Implement email.sendVerifyRemove

Write email.js unit tests
This commit is contained in:
Tankred Hase
2016-05-30 15:36:32 +02:00
parent d56439cf8c
commit 279992379f
4 changed files with 206 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ class REST {
ctx.throw(400, 'Invalid request!');
}
let origin = util.getOrigin(ctx);
yield this._publicKey({ publicKeyArmored, primaryEmail, origin });
yield this._publicKey.put({ publicKeyArmored, primaryEmail, origin });
ctx.status = 201;
}