Skip to content
Snippets Groups Projects
Commit 34356f57 authored by William Enright's avatar William Enright
Browse files

Fixed UI not displaying revocation status properly

Change-Id: Ie79dd7f2a7c469df3b7fcf1cb1c03416f0a51c2c
parent 8c427e96
No related branches found
No related tags found
No related merge requests found
......@@ -526,7 +526,11 @@ function handleNewOTP(data) {
}
function setStatus(data) {
if (data.getResponseHeader('revoked') == 'true')
var resultSet = data.responseText;
resultSet = resultSet.replace(/\s+/g, ' ').trim();
resultSet = JSON.parse(resultSet);
if (data.getResponseHeader('revoked') == 'true' || resultSet.revoked)
userStatus = "Revoked";
else
userStatus = "Active";
......
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