Send confirmation email to updated address
This will fix https://github.com/nim-lang/nimforum/issues/155. Currently nimforum sends the confirmation email to the address in database but it should've sent it to the new address. Activity: User changes email Issue: Confirmation email is sent to old address Fix: Send the confirmation email to updated address
This commit is contained in:
parent
d372d9f980
commit
ebbfa265d5
1 changed files with 1 additions and 1 deletions
|
|
@ -774,7 +774,7 @@ proc updateProfile(
|
|||
raise newForumError("Rank needs a change when setting new email.")
|
||||
|
||||
await sendSecureEmail(
|
||||
mailer, ActivateEmail, c.req, row[0], row[1], row[2], row[3]
|
||||
mailer, ActivateEmail, c.req, row[0], row[1], email, row[3]
|
||||
)
|
||||
|
||||
validateEmail(email, checkDuplicated=wasEmailChanged)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue