aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/users
diff options
context:
space:
mode:
authorkimsible <kimsible@users.noreply.github.com>2020-07-20 14:58:58 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-07-20 16:56:32 +0200
commit963023abe6acf31799f6474d78489c8013f664fa (patch)
treeb69a46ee5ced94863f46720877a5643e1221b829 /server/controllers/api/users
parent0bdad52fbbad81e7654adc495088da56a00437df (diff)
downloadPeerTube-963023abe6acf31799f6474d78489c8013f664fa.tar.gz
PeerTube-963023abe6acf31799f6474d78489c8013f664fa.tar.zst
PeerTube-963023abe6acf31799f6474d78489c8013f664fa.zip
Fix: display username in password-reset and verify-email notifs
Diffstat (limited to 'server/controllers/api/users')
-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 fcd828ae3..5939f6125 100644
--- a/server/controllers/api/users/index.ts
+++ b/server/controllers/api/users/index.ts
@@ -340,7 +340,7 @@ async function askResetUserPassword (req: express.Request, res: express.Response
340 340
341 const verificationString = await Redis.Instance.setResetPasswordVerificationString(user.id) 341 const verificationString = await Redis.Instance.setResetPasswordVerificationString(user.id)
342 const url = WEBSERVER.URL + '/reset-password?userId=' + user.id + '&verificationString=' + verificationString 342 const url = WEBSERVER.URL + '/reset-password?userId=' + user.id + '&verificationString=' + verificationString
343 await Emailer.Instance.addPasswordResetEmailJob(user.email, url) 343 await Emailer.Instance.addPasswordResetEmailJob(user.username, user.email, url)
344 344
345 return res.status(204).end() 345 return res.status(204).end()
346} 346}