Merge pull request #250 from andinus/fix-email-change-update

Send confirmation email to updated address
This commit is contained in:
Joey 2020-06-12 12:02:52 -06:00 • committed by GitHub
commit 14786d3d49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)