Skip to content

Commit

Permalink
fix: use specific bean with OC to allow determine SQL table name
Browse files Browse the repository at this point in the history
  • Loading branch information
yurem committed Jan 4, 2022
1 parent 3c25bea commit 04d1e0c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import io.jans.as.model.configuration.AppConfiguration;
import io.jans.as.model.fido.u2f.DeviceRegistrationStatus;
import io.jans.as.server.model.fido.u2f.DeviceRegistration;
import io.jans.fido2.model.entry.Fido2RegistrationEntry;
import io.jans.orm.ldap.impl.LdapEntryManagerFactory;
import io.jans.orm.model.base.CustomEntry;
import io.jans.orm.model.base.SimpleBranch;
Expand Down Expand Up @@ -74,7 +75,7 @@ public long countFido2RegisteredDevices(String username) {
Filter registeredFilter = Filter.createEqualityFilter("jansStatus", "registered");
Filter filter = Filter.createANDFilter(userInumFilter, registeredFilter);

return persistenceEntryManager.countEntries(baseDn, CustomEntry.class, filter);
return persistenceEntryManager.countEntries(baseDn, Fido2RegistrationEntry.class, filter);
}

public long countFidoRegisteredDevices(String username, String domain) {
Expand Down

0 comments on commit 04d1e0c

Please sign in to comment.