User.confirm attempts to clear the verificationToken after confirmation but it does not work.
user.verificationToken = undefined;
user.emailVerified = true;
user.save(function (err) {
It seems that the save function does not update fields with undefined value. Null works.
user.verificationToken = null;
User.confirm attempts to clear the verificationToken after confirmation but it does not work.
It seems that the save function does not update fields with undefined value. Null works.