Fix normalization of email to lowercase

This commit is contained in:
Thomas Oberndörfer
2019-03-06 15:47:46 +01:00
parent aad782573d
commit 1fcf791560
5 changed files with 21 additions and 7 deletions

View File

@@ -43,7 +43,7 @@ class REST {
ctx.throw(400, 'Invalid request!');
}
const origin = util.origin(ctx);
await this._publicKey.put({emails: emails ? emails : [], publicKeyArmored, origin});
await this._publicKey.put({emails, publicKeyArmored, origin});
ctx.body = 'Upload successful. Check your inbox to verify your email address.';
ctx.status = 201;
}