/user/update
Exports the [user] update method for the /api/user/cookie route.
- Source
Requires
Methods
(inner) update(req, res)
The update method will send a request to the ACL to update a user record in the ACL.
The user object to update can be provided as request body.
Property values to be updated must be provided as a substitutes array to prevent SQL injection.
The update_user keys must be validated to contain white listed characters only to prevent SQL injection.
Name | Type | Attributes | Description |
---|---|---|---|
req.body | Object | <optional> | HTTP Post request body containing the update information. |
req.params | Object | HTTP request parameter. | |
params.email | string | User to update | |
params.field | string | User record field to update | |
params.value | string | Update value for user record field. | |
params.user | Object | Requesting user. | |
user.admin | boolean | Requesting user is admin. |
- Source