Fix deleting users on mongo

This commit is contained in:
mposolda 2014-08-05 14:36:53 +02:00
parent 0289f5dff9
commit 550ba16a09

View file

@ -287,7 +287,7 @@ public class MongoUserProvider implements UserProvider {
@Override @Override
public boolean removeUser(RealmModel realm, UserModel user) { public boolean removeUser(RealmModel realm, UserModel user) {
DBObject query = new QueryBuilder() DBObject query = new QueryBuilder()
.and("id").is(user.getId()) .and("_id").is(user.getId())
.and("realmId").is(realm.getId()) .and("realmId").is(realm.getId())
.get(); .get();
return getMongoStore().removeEntities(MongoUserEntity.class, query, invocationContext); return getMongoStore().removeEntities(MongoUserEntity.class, query, invocationContext);