mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Fix: display username in password-reset and verify-email notifs
This commit is contained in:
parent
0bdad52fbb
commit
963023abe6
4 changed files with 10 additions and 7 deletions
|
@ -111,8 +111,9 @@ async function sendVerifyUserEmail (user: MUser, isPendingEmail = false) {
|
|||
if (isPendingEmail) url += '&isPendingEmail=true'
|
||||
|
||||
const email = isPendingEmail ? user.pendingEmail : user.email
|
||||
const username = user.username
|
||||
|
||||
await Emailer.Instance.addVerifyEmailJob(email, url)
|
||||
await Emailer.Instance.addVerifyEmailJob(username, email, url)
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue