Skip to content

Commit

Permalink
fix: get the savedEmail for sending new verification email from corre…
Browse files Browse the repository at this point in the history
…ct place
  • Loading branch information
yaroslav-fedyshyn-nordwhale committed Dec 2, 2019
1 parent e9656f5 commit 3a60d26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/verification/verificationAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ const setup = (app: Router, verifier: VerificationAPI, storage: StorageAPI) => {

//merge user details for use by mautic
let userRec: UserRecord = _.defaults(body.user, user)
const savedEmail = userRec.email
const savedEmail = user.email

if (conf.allowDuplicateUserData === false && (await storage.isDupUserData({ email }))) {
return res.json({ ok: 0, error: 'Email already exists, please use a different one' })
Expand Down

0 comments on commit 3a60d26

Please sign in to comment.