Fix deleting users on mongo
This commit is contained in:
parent
0289f5dff9
commit
550ba16a09
1 changed files with 1 additions and 1 deletions
|
@ -287,7 +287,7 @@ public class MongoUserProvider implements UserProvider {
|
|||
@Override
|
||||
public boolean removeUser(RealmModel realm, UserModel user) {
|
||||
DBObject query = new QueryBuilder()
|
||||
.and("id").is(user.getId())
|
||||
.and("_id").is(user.getId())
|
||||
.and("realmId").is(realm.getId())
|
||||
.get();
|
||||
return getMongoStore().removeEntities(MongoUserEntity.class, query, invocationContext);
|
||||
|
|
Loading…
Reference in a new issue