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); u.setLastName(data + " " + data); u.setActive(true); u.setEmail(data+"."+data+"@domain.com"); String pwd = pe.encode("00000"); u.setPassword(pwd); u.setUsername((data+data).replace(" ", "")); u.setVersion(1); dataManager.save(u);
Any help is greatly appreciated.
Thanks in advance.