Support updating email via /account/data

This commit is contained in:
Calvin Montgomery 2017-09-05 23:11:28 -07:00
parent 5b6f86668a
commit 9e3426633d
3 changed files with 152 additions and 9 deletions

View file

@ -104,7 +104,11 @@ class AccountDataRoute {
const { password, updates } = req.body;
try {
this.accountController.updateAccount(req.user, updates, password);
await this.accountController.updateAccount(
req.params.user,
updates,
password
);
res.status(204).send();
} catch (error) {
reportError(req, res, error);