Skip to content

Commit

Permalink
Update PrivacyIDEA.java
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmatusiewicz committed Nov 26, 2024
1 parent e79ee68 commit 8d1a230
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/main/java/org/privacyidea/PrivacyIDEA.java
Original file line number Diff line number Diff line change
Expand Up @@ -239,19 +239,7 @@ public ChallengeStatus pollTransaction(String transactionID)
params.put(TRANSACTION_ID, transactionID);
String response = runRequestAsync(ENDPOINT_POLLTRANSACTION, params, Collections.emptyMap(), false, GET);
PIResponse piresponse = this.parser.parsePIResponse(response);
if (piresponse.challengeStatus == ChallengeStatus.pending)
{
return ChallengeStatus.pending;
}
else if (piresponse.challengeStatus == ChallengeStatus.accept)
{
return ChallengeStatus.accept;
}
else if (piresponse.challengeStatus == ChallengeStatus.declined)
{
return ChallengeStatus.declined;
}
return ChallengeStatus.none;
return piresponse.challengeStatus;
}

/**
Expand Down

0 comments on commit 8d1a230

Please sign in to comment.