aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-09-28 16:00:32 +0200
committerChocobozzz <me@florianbigard.com>2022-09-28 16:00:32 +0200
commitc5f3ff39e5351ac911418c432dac235c5aefec9e (patch)
tree5b7cbcf7a4436f891515364e735d564948a4503d /server/controllers
parent1f545e80b4db2aa371be48e3bce7de8f32d557d3 (diff)
downloadPeerTube-c5f3ff39e5351ac911418c432dac235c5aefec9e.tar.gz
PeerTube-c5f3ff39e5351ac911418c432dac235c5aefec9e.tar.zst
PeerTube-c5f3ff39e5351ac911418c432dac235c5aefec9e.zip
Ask password reset/email verif error handling
With a user that uses a plugin authentication
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/api/users/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/users/index.ts b/server/controllers/api/users/index.ts
index 0b27d5277..07b9ae395 100644
--- a/server/controllers/api/users/index.ts
+++ b/server/controllers/api/users/index.ts
@@ -343,7 +343,7 @@ async function askResetUserPassword (req: express.Request, res: express.Response
343 343
344 const verificationString = await Redis.Instance.setResetPasswordVerificationString(user.id) 344 const verificationString = await Redis.Instance.setResetPasswordVerificationString(user.id)
345 const url = WEBSERVER.URL + '/reset-password?userId=' + user.id + '&verificationString=' + verificationString 345 const url = WEBSERVER.URL + '/reset-password?userId=' + user.id + '&verificationString=' + verificationString
346 await Emailer.Instance.addPasswordResetEmailJob(user.username, user.email, url) 346 Emailer.Instance.addPasswordResetEmailJob(user.username, user.email, url)
347 347
348 return res.status(HttpStatusCode.NO_CONTENT_204).end() 348 return res.status(HttpStatusCode.NO_CONTENT_204).end()
349} 349}