Cuba User Migration to JMIX Fresh Database - Password issues

Hello -
We have a project that was originally written in Cuba that we re-created from scratch using JMIX. We are working on re-inserting previous data from the old app database into the new using an ETL tool for the inserts. All previous data is inserting without issue but we are running into problems inserting the users data from Cuba to JMIX.

All user details insert correctly. First_Name, Last_Name, Username, Email, Phone etc…

What isn’t working is user passwords. This makes sense (assuming different bcrypt versions between JMIX and Cuba), but I can’t even change an inserted user’s password to something else. I get the following error

There is no PasswordEncoder mapped for the id “null”

What am I missing?

image

java.lang.IllegalArgumentException: There is no PasswordEncoder mapped for the id “null”
at org.springframework.security.crypto.password.DelegatingPasswordEncoder$UnmappedIdPasswordEncoder.matches(DelegatingPasswordEncoder.java:289)
at org.springframework.security.crypto.password.DelegatingPasswordEncoder.matches(DelegatingPasswordEncoder.java:237)
at io.jmix.securitydata.user.AbstractDatabaseUserRepository.changePassword(AbstractDatabaseUserRepository.java:211)
at io.jmix.securitydata.user.AbstractDatabaseUserRepository.changePassword(AbstractDatabaseUserRepository.java:206)

Solved it
Putting the answer here incase anyone ever has this same issue.

The password needed {bcrypt} before the password.

image