aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/user.ts
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/lib/user.ts
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/lib/user.ts')
-rw-r--r--server/lib/user.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/lib/user.ts b/server/lib/user.ts
index 43eef8ab1..dabb35061 100644
--- a/server/lib/user.ts
+++ b/server/lib/user.ts
@@ -111,8 +111,9 @@ async function sendVerifyUserEmail (user: MUser, isPendingEmail = false) {
111 if (isPendingEmail) url += '&isPendingEmail=true' 111 if (isPendingEmail) url += '&isPendingEmail=true'
112 112
113 const email = isPendingEmail ? user.pendingEmail : user.email 113 const email = isPendingEmail ? user.pendingEmail : user.email
114 const username = user.username
114 115
115 await Emailer.Instance.addVerifyEmailJob(email, url) 116 await Emailer.Instance.addVerifyEmailJob(username, email, url)
116} 117}
117 118
118// --------------------------------------------------------------------------- 119// ---------------------------------------------------------------------------