Skip to content

User verification token not cleared after confirmation #414

Description

@johnsoftek

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;

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions