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

This commit is contained in:
Virtually Nick committed 2019-08-11 18:49:45 -04:00
1 parent 516963a162
commit 59c46da5b5
1 file changed
+1 -2
@@ -109,8 +109,7 @@ public class AuthenticationProviderService {
}
// 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.toString().split(" = ", 2)[1];
String replyMsg = replyAttr.getValue().toString();
String radiusState = BaseEncoding.base16().encode(stateAttr.getValue().getBytes());
Field radiusResponseField = new PasswordField(CHALLENGE_RESPONSE_PARAM);
Field radiusStateField = new RadiusStateField(radiusState);