After creating user with Strapi entity service, login isnt possible

System Information
  • Strapi Version: 4.5.5
  • Operating System: Ubuntu
  • Database: SQLLITE
  • Node Version: 16.18.1
  • NPM Version: -
  • Yarn Version: -

Hello Guys after creating an User in Strapi via Strapi Entity service there is no possible way to login with this created user. const createUser = await strapi.entityService.create('plugin::users-permissions.user', { data: { username: email, email, password: body.password, confirmed: true, blocked: false, UUID: crypto.randomUUID(), role: "1", },

After this even though i got ranndom passworfd string or 123456789 it would not be able after creating to login


password should be encrypted bcrypt see the password field.

Hey really thanks for the reply, but even though use bcrypt as a password its not working its getting worse, ive even tried to set the password via admin panel and it still dosent work

After registering is the role populated too as authenticated?

we got it, fixxed i forgot to set the provider as local. so yeah was my fault :smiley: