diff --git a/src/main/java/com/vonage/sample/serversdk/springboot/VerifyController.java b/src/main/java/com/vonage/sample/serversdk/springboot/VerifyController.java index 64eb50f..f5c6d6a 100644 --- a/src/main/java/com/vonage/sample/serversdk/springboot/VerifyController.java +++ b/src/main/java/com/vonage/sample/serversdk/springboot/VerifyController.java @@ -102,7 +102,7 @@ public String postVerificationRequest(@ModelAttribute VerifyParams verifyParams, public String checkVerificationRequest(@ModelAttribute VerifyParams verifyParams, Model model) { try { String result = "Code matched. Verification successful."; - if (verifyParams.codeless || verifyParams.checkUrl != null || verifyParams.getUserCode() == null) { + if (verifyParams.codeless || verifyParams.checkUrl != null || verifyParams.userCode == null) { String code = successfulVerifications.remove(verifyParams.requestId); if (code == null) synchronized (successfulVerifications) { try {