The user service was just updated with a new endpoint, POST /api/account/user/logout/:id, which will delete all of a user's active sessions. You can read more about it in cinema6/cwrx#261.
Proshop should start using this in two places:
When deleting a user, proshop should also make a call to this endpoint with the user's id. This will ensure that the user is fully shut out of the system.
Proshop should have some button that lets us lock down/freeze a user. This should first call PUT /api/account/user/:id and set the user's status to 'inactive', and then call POST /api/account/user/logout/:id to delete their active logins. Clicking the button should probably bring up some prompt with a warning message explaining that this will log the user and render them unable to make any requests.
The user service was just updated with a new endpoint,
POST /api/account/user/logout/:id
, which will delete all of a user's active sessions. You can read more about it in cinema6/cwrx#261.Proshop should start using this in two places:
PUT /api/account/user/:id
and set the user's status to 'inactive', and then callPOST /api/account/user/logout/:id
to delete their active logins. Clicking the button should probably bring up some prompt with a warning message explaining that this will log the user and render them unable to make any requests.@sqmunson CC: @howardengelhart