diff --git a/security-jaas/jaas-login-module/src/main/java/com/baeldung/security/jaas/authentication/InMemoryLoginModule.java b/security-jaas/jaas-login-module/src/main/java/com/baeldung/security/jaas/authentication/InMemoryLoginModule.java index 27b57072cd..8a48e36401 100644 --- a/security-jaas/jaas-login-module/src/main/java/com/baeldung/security/jaas/authentication/InMemoryLoginModule.java +++ b/security-jaas/jaas-login-module/src/main/java/com/baeldung/security/jaas/authentication/InMemoryLoginModule.java @@ -45,7 +45,7 @@ public class InMemoryLoginModule implements LoginModule { loginSucceeded = true; } } catch (IOException | UnsupportedCallbackException e) { - //... + throw new LoginException("Can't login"); } return loginSucceeded; }