/user/verify
Exports the [user] verify method for the /api/user/verify route.
- Source
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:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
req | Object | HTTP request. | |||||||||
res | Object | HTTP response. | |||||||||
req.params | Object | Request parameter. Properties
|
- Source