From ebbfa265d56186a8933d0131c58b6d1d58b7dfec Mon Sep 17 00:00:00 2001 From: Andinus Date: Fri, 12 Jun 2020 22:21:45 +0530 Subject: [PATCH] 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 --- src/forum.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/forum.nim b/src/forum.nim index 5d55670..a880610 100644 --- a/src/forum.nim +++ b/src/forum.nim @@ -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)