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

@ -49,7 +49,7 @@ class AccountController {
throw new InvalidRequestError('Password required');
}
const user = await this.accountDB.getUserByName(name);
const user = await this.accountDB.getByName(name);
if (!user) {
throw new InvalidRequestError('User does not exist');