/user/verify

Exports the [user] verify method for the /api/user/verify route.

Requires

Methods

(inner) verify(req, res)

Attemps to find a user record with matching params.key verificationtoken.

Update failedattempts=0, verified=true, and password=passwordreset in the user record.

The verification token can only be used once and will be nulled in the ACL.

An email will be sent to all admin accounts requesting approval of the newly verified user account.

Parameters:
NameTypeDescription
reqObject

HTTP request.

resObject

HTTP response.

req.paramsObject

Request parameter.

Properties
NameTypeDescription
keystring

Verification key

languagestring

Request messaging language