Skip to content

Confirming a user does not remove their verificationToken on postgres #2424

Description

@JonForest

Calling User.confirm does not remove the verificationToken

The line here https://github.com/strongloop/loopback/blob/master/common/models/user.js#L488
user.verificationToken = undefined;
Results in the verificationToken field not being part of the postgres UPDATE query.

Simply modifying to
user.verificationToken = null;
fixes it

Will try to raise a PR this weekend.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions