enable user if active when importing

This commit is contained in:
Hugo Renard 2022-03-17 11:17:54 +01:00
parent 68464a7efc
commit f0e452c21a
Signed by: hougo
GPG key ID: 3A285FD470209C59

View file

@ -130,6 +130,7 @@ public class UserAdapter extends Adapter<UserModel, UserResource> {
kcUser.setRealmId(realmId);
kcUser.setUsername(username);
kcUser.setEmail(email, false);
kcUser.setEnabled(active);
this.em.persist(kcUser);
this.id = kcUser.getId();
}