GUACAMOLE-769: Get the value and avoid splitting the string.

This commit is contained in:
Virtually Nick
2019-08-11 18:41:39 -04:00
parent 516963a162
commit 59c46da5b5

View File

@@ -109,8 +109,7 @@ public class AuthenticationProviderService {
} }
// We have the required attributes - convert to strings and then generate the additional login box/field // We have the required attributes - convert to strings and then generate the additional login box/field
logger.debug("Received challenge: {}", replyAttr.getValue().toString()); String replyMsg = replyAttr.getValue().toString();
String replyMsg = replyAttr.toString().split(" = ", 2)[1];
String radiusState = BaseEncoding.base16().encode(stateAttr.getValue().getBytes()); String radiusState = BaseEncoding.base16().encode(stateAttr.getValue().getBytes());
Field radiusResponseField = new PasswordField(CHALLENGE_RESPONSE_PARAM); Field radiusResponseField = new PasswordField(CHALLENGE_RESPONSE_PARAM);
Field radiusStateField = new RadiusStateField(radiusState); Field radiusStateField = new RadiusStateField(radiusState);