From adcaf990371683740b1359b7e0ab722a76c9bf6f Mon Sep 17 00:00:00 2001 From: Aravindhan Alagesan Date: Thu, 2 Nov 2023 13:44:55 +0530 Subject: [PATCH] [MOSIP-27605]Added the condition to validate unlock for second params to avoid confusion incase of authentication locked (#1135) * Added the string lower case function to avoid error throwing while comparing Signed-off-by: Aravindhan Alagesan * Added the string lower case function to avoid error throwing while comparing Signed-off-by: Aravindhan Alagesan * Added the string lower case function to avoid error throwing while comparing Signed-off-by: Aravindhan Alagesan * Added the condition to validate unlockfor second param to avoid confusion incase of authentication locked Signed-off-by: Aravindhan Alagesan * Added the condition to validate unlockfor second param to avoid confusion incase of authentication locked Signed-off-by: Aravindhan Alagesan * Added the condition to validate unlockfor second param to avoid confusion incase of authentication locked Signed-off-by: Aravindhan Alagesan * Added the condition to validate unlockfor second param to avoid confusion incase of authentication locked Signed-off-by: Aravindhan Alagesan --------- Signed-off-by: Aravindhan Alagesan --- .../java/io/mosip/resident/validator/RequestValidator.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resident/resident-service/src/main/java/io/mosip/resident/validator/RequestValidator.java b/resident/resident-service/src/main/java/io/mosip/resident/validator/RequestValidator.java index 7131aca97be..89e6ae39743 100644 --- a/resident/resident-service/src/main/java/io/mosip/resident/validator/RequestValidator.java +++ b/resident/resident-service/src/main/java/io/mosip/resident/validator/RequestValidator.java @@ -424,9 +424,8 @@ private void validateAuthTypeV2(List authTypesList) { throw new InvalidInputException("unlockForSeconds"); } - - List authTypesList = Arrays.asList(authTypeString); - validateAuthType(authTypesList, + List authTypes = Arrays.asList(authTypeString); + validateAuthType(authTypes, "Request auth " + authTypes.toString().toLowerCase() + " API"); }