Skip to content
Snippets Groups Projects
Commit 34e0a3c6 authored by William Enright's avatar William Enright Committed by Adrien Béraud
Browse files

Fixed data autofill and updates on profile page

Change-Id: I348760ad8e605872c54b0291231452cfcbeeb605
parent 11ca2fae
No related branches found
No related tags found
No related merge requests found
......@@ -97,7 +97,7 @@ public class UserServlet extends HttpServlet {
@Override
protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws IOException {
DeviceRevocationResponse devResponse = RevokeUserFlow.revokeUser(req.getParameter("username"));
if(devResponse != null) resp.getOutputStream().write(JsonStream.serialize(devResponse).getBytes());
else resp.sendError(500,"An exception has occurred while trying to revoke a device!");
if(devResponse != null && devResponse.isSuccess()) resp.getOutputStream().write(JsonStream.serialize(devResponse).getBytes());
else resp.sendError(500,"An exception has occurred while trying to revoke a user!");
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment