Skip to content

Commit

Permalink
[MOSIP-27605]Added the condition to validate unlock for second params…
Browse files Browse the repository at this point in the history
… 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 <[email protected]>

* Added the string lower case function to avoid error throwing while comparing

Signed-off-by: Aravindhan Alagesan <[email protected]>

* Added the string lower case function to avoid error throwing while comparing

Signed-off-by: Aravindhan Alagesan <[email protected]>

* Added the condition to validate unlockfor second param to avoid confusion incase of authentication locked

Signed-off-by: Aravindhan Alagesan <[email protected]>

* Added the condition to validate unlockfor second param to avoid confusion incase of authentication locked

Signed-off-by: Aravindhan Alagesan <[email protected]>

* Added the condition to validate unlockfor second param to avoid confusion incase of authentication locked

Signed-off-by: Aravindhan Alagesan <[email protected]>

* Added the condition to validate unlockfor second param to avoid confusion incase of authentication locked

Signed-off-by: Aravindhan Alagesan <[email protected]>

---------

Signed-off-by: Aravindhan Alagesan <[email protected]>
  • Loading branch information
aranaravi authored Nov 2, 2023
1 parent ff947c0 commit adcaf99
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,8 @@ private void validateAuthTypeV2(List<AuthTypeStatusDtoV2> authTypesList) {
throw new InvalidInputException("unlockForSeconds");
}


List<String> authTypesList = Arrays.asList(authTypeString);
validateAuthType(authTypesList,
List<String> authTypes = Arrays.asList(authTypeString);
validateAuthType(authTypes,
"Request auth " + authTypes.toString().toLowerCase() + " API");

}
Expand Down

0 comments on commit adcaf99

Please sign in to comment.