Skip to content

Commit 5f48ebd

Browse files
Update JSONParser.java
1 parent 56feed9 commit 5f48ebd

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/main/java/org/privacyidea/JSONParser.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ public PIResponse parsePIResponse(String serverResponse)
129129
if (result != null)
130130
{
131131
String r = getString(result, AUTHENTICATION);
132-
for (AuthenticationStatus en : AuthenticationStatus.values())
132+
for (AuthenticationStatus as: AuthenticationStatus.values())
133133
{
134-
if (en.toString().equals(r))
134+
if (as.toString().equals(r))
135135
{
136-
response.authentication = en;
136+
response.authentication = as;
137137
}
138138
}
139139
response.status = getBoolean(result, STATUS);
@@ -175,11 +175,11 @@ else if ("interactive".equals(modeFromResponse))
175175
response.otpLength = getInt(detail, OTPLEN);
176176

177177
String r = getString(detail, CHALLENGE_STATUS);
178-
for (ChallengeStatus en : ChallengeStatus.values())
178+
for (ChallengeStatus cs: ChallengeStatus.values())
179179
{
180-
if (en.toString().equals(r))
180+
if (cs.toString().equals(r))
181181
{
182-
response.challengeStatus = en;
182+
response.challengeStatus = cs;
183183
}
184184
}
185185

0 commit comments

Comments
 (0)