Hi,
I am importing the user base of my old app in my JMIX application, and am having some issues while importing them. I am being able to create the user entities and generate the encrypted passwords. However none of the users will be able to login.
I am using a JMX Bean to perform the import, with the following code as the main code snippet:
User u = dataManager.create(User.class);
u.setFirstName(data[1]);
u.setLastName(data[2] + " " + data[3]);
u.setActive(true);
u.setEmail(data[1]+"."+data[2]+"@domain.com");
String pwd = pe.encode("00000");
u.setPassword(pwd);
u.setUsername((data[1]+data[2]).replace(" ", ""));
u.setVersion(1);
dataManager.save(u);
Any help is greatly appreciated.
Thanks in advance.
Carlos.