Update dependencies
This commit is contained in:
parent
1158db6d7e
commit
5a7e695e53
10 changed files with 864 additions and 870 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue