diff --git a/examples/providers/authenticator/src/main/java/org/keycloak/examples/authenticator/SecretQuestionCredentialProvider.java b/examples/providers/authenticator/src/main/java/org/keycloak/examples/authenticator/SecretQuestionCredentialProvider.java index 52e0ba10584a..8913fba24ebe 100644 --- a/examples/providers/authenticator/src/main/java/org/keycloak/examples/authenticator/SecretQuestionCredentialProvider.java +++ b/examples/providers/authenticator/src/main/java/org/keycloak/examples/authenticator/SecretQuestionCredentialProvider.java @@ -87,8 +87,8 @@ public CredentialModel createCredential(RealmModel realm, UserModel user, Secret } @Override - public void deleteCredential(RealmModel realm, UserModel user, String credentialId) { - getCredentialStore().removeStoredCredential(realm, user, credentialId); + public boolean deleteCredential(RealmModel realm, UserModel user, String credentialId) { + return getCredentialStore().removeStoredCredential(realm, user, credentialId); } @Override