|
@@ -301,7 +301,6 @@ const checkNewSecondaryEmailConfirmationCode = _checkConfirmationCode(
|
|
|
req.ip,
|
|
req.ip,
|
|
|
{ newSecondaryEmail: email }
|
|
{ newSecondaryEmail: email }
|
|
|
)
|
|
)
|
|
|
- await _sendSecurityAlertEmail(user, email)
|
|
|
|
|
await UserUpdater.promises.addEmailAddress(
|
|
await UserUpdater.promises.addEmailAddress(
|
|
|
user._id,
|
|
user._id,
|
|
|
email,
|
|
email,
|
|
@@ -311,6 +310,7 @@ const checkNewSecondaryEmailConfirmationCode = _checkConfirmationCode(
|
|
|
ipAddress: req.ip,
|
|
ipAddress: req.ip,
|
|
|
}
|
|
}
|
|
|
)
|
|
)
|
|
|
|
|
+ await _sendSecurityAlertEmail(user, email)
|
|
|
}
|
|
}
|
|
|
)
|
|
)
|
|
|
|
|
|