aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/users/index.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-08-12 09:15:31 +0200
committerChocobozzz <me@florianbigard.com>2020-08-12 09:16:08 +0200
commite9c5f123383e461a890c95368dce6f79d3b84660 (patch)
treeb6c55e9572a3566d4f2defbff314ac8414be8212 /server/controllers/api/users/index.ts
parent857961f0ee39f90dc3267cebd2b5e3f718115d06 (diff)
downloadPeerTube-e9c5f123383e461a890c95368dce6f79d3b84660.tar.gz
PeerTube-e9c5f123383e461a890c95368dce6f79d3b84660.tar.zst
PeerTube-e9c5f123383e461a890c95368dce6f79d3b84660.zip
Do not reuse reset password links
Diffstat (limited to 'server/controllers/api/users/index.ts')
-rw-r--r--server/controllers/api/users/index.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/controllers/api/users/index.ts b/server/controllers/api/users/index.ts
index 5ae0dc7a7..5b113feac 100644
--- a/server/controllers/api/users/index.ts
+++ b/server/controllers/api/users/index.ts
@@ -356,6 +356,7 @@ async function resetUserPassword (req: express.Request, res: express.Response) {
356 user.password = req.body.password 356 user.password = req.body.password
357 357
358 await user.save() 358 await user.save()
359 await Redis.Instance.removePasswordVerificationString(user.id)
359 360
360 return res.status(204).end() 361 return res.status(204).end()
361} 362}