Update dependencies

This commit is contained in:
Jonathan Cremin 2019-06-08 07:52:57 -07:00
parent 1158db6d7e
commit 5a7e695e53
10 changed files with 864 additions and 870 deletions

View file

@ -89,7 +89,7 @@ export async function forgot(ctx) {
const user = await validateResetToken(token);
if (user) {
await updatePassword(user.userId, ctx.request.body.password);
const reset = await models.reset.findById(token);
const reset = await models.reset.findByPk(token);
reset.destroy();
await setupSession.call(ctx, user);
ctx.statsd.incr('auth.reset.success', 1);