Skip to content

Commit

Permalink
Update PrivacyIDEA.java
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmatusiewicz committed Feb 10, 2025
1 parent c09b902 commit faf235b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/org/privacyidea/PrivacyIDEA.java
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,12 @@ private PIResponse getPIResponse(String type, String input, String pass, Map<Str
}
String response = runRequestAsync(ENDPOINT_VALIDATE_CHECK, params, headers, false, POST);
// Shutdown the scheduler if user successfully authenticated
if (this.parser.parsePIResponse(response) != null && this.parser.parsePIResponse(response).value)
PIResponse piResponse = this.parser.parsePIResponse(response);
if (piResponse != null && piResponse.value)
{
this.scheduler.shutdownNow();
}
return this.parser.parsePIResponse(response);
return piResponse;
}

/**
Expand Down

0 comments on commit faf235b

Please sign in to comment.